aboutsummaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2021-02-28 11:50:53 +0100
committerJakob Stendahl <jakob.stendahl@outlook.com>2021-02-28 11:51:06 +0100
commitc4554532612d139de31723267cb1c3192ff6d4a8 (patch)
tree869ceb9350a71bc23d2917001bd1a0369a4296ab /inc
parent4cceee770b44a7a9606543087bb89901574c7540 (diff)
downloadhoverbit-ble-c4554532612d139de31723267cb1c3192ff6d4a8.tar.gz
hoverbit-ble-c4554532612d139de31723267cb1c3192ff6d4a8.zip
:sparkles: Add emptyBattery code
Diffstat (limited to 'inc')
-rw-r--r--inc/HoverBitController.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/HoverBitController.h b/inc/HoverBitController.h
index 80ad173..f2c10b7 100644
--- a/inc/HoverBitController.h
+++ b/inc/HoverBitController.h
@@ -51,11 +51,12 @@ class HoverBitController {
unsigned long lastReceiveTime;
bool mainController;
- bool batteryEmpty;
+ bool bBatteryEmpty;
int batteryMilliVolt;
float batteryFactor;
bool failSafe(void);
+ void checkBattery();
void AirBit(int Pitch,int Arm,int Roll,int Throttle,int Yaw,int Aux1,int Aux2);
public: