From c4554532612d139de31723267cb1c3192ff6d4a8 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Sun, 28 Feb 2021 11:50:53 +0100 Subject: :sparkles: Add emptyBattery code --- inc/HoverBitController.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inc/HoverBitController.h') 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: -- cgit v1.2.3