From 7989505bf43c6dd0ea846f075337261f52e7bd5f Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Wed, 24 Feb 2021 13:37:24 +0100 Subject: :art: Use extern MicroBit instead of sending pointer to classes --- inc/HoverBitController.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'inc/HoverBitController.h') diff --git a/inc/HoverBitController.h b/inc/HoverBitController.h index 0c2960a..80ad173 100644 --- a/inc/HoverBitController.h +++ b/inc/HoverBitController.h @@ -31,6 +31,8 @@ DEALINGS IN THE SOFTWARE. #define FSAFE_TLIM_THROTTLE 1000 // When to cut the throttle #define FSAFE_TLIM_ARM 5000 // When to disarm +extern MicroBit uBit; + /** * This class can be used to interface with a AirBit card for controlling a HOVER:BIT kit. * @@ -39,8 +41,6 @@ DEALINGS IN THE SOFTWARE. */ class HoverBitController { private: - MicroBit* uBit; - int buzzer; int servo_1; int arm; @@ -59,7 +59,7 @@ class HoverBitController { void AirBit(int Pitch,int Arm,int Roll,int Throttle,int Yaw,int Aux1,int Aux2); public: - void init(MicroBit* _uBit); + void init(); unsigned int GetBatteryVoltage(void); void HoverControl(); -- cgit v1.2.3