Flying Silicon Sensor
|
Main module. More...
Go to the source code of this file.
Functions | |
void | appSetup (void) |
void | appLoop (void) |
Main module.
Arduino code for Flying Silicon Airspeed/Vario Probe and TotalVario Android app.
For more information refer to: https://flyingsilicon.blogspot.com/
https://totalvario.blogspot.com/
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License http://www.gnu.org/licenses/ for more details.
Definition in file fsSensor.h.
void appLoop | ( | void | ) |
Application loop
Definition at line 501 of file fsSensor.cpp.
References ACTIVE_WITH_USB, AUTO_OFF_MS, DEBUG, disable(), enable(), IntervalPWR, PwrSupply::isBatDrained(), PwrSupply::isBatPowered(), BleInterface::isConnected(), isConnected, isEnabled, lastActiveMs, lastPWRMs, LOGL, loopConnected(), loopIdle(), loopPassive(), managePower(), Sounds::playConnect(), Sounds::playDisconnect(), Sounds::playSwitchOff(), Remote, sentMeta, suspend(), and timeMs.
Referenced by loop().
void appSetup | ( | void | ) |
Initial application setup
Definition at line 610 of file fsSensor.cpp.
References ACTIVE_WITH_USB, configure(), DEBUG, DEVICE_NAME, disable(), dps, enable(), BleInterface::init(), PwrSupply::isBatDrained(), PwrSupply::isBatPowered(), LOGL, managePower(), Remote, resetStatus(), resetTimers(), sdp, sht, and suspend().
Referenced by setup().