aboutsummaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2021-02-24 13:37:24 +0100
committerJakob Stendahl <jakob.stendahl@outlook.com>2021-02-24 13:37:24 +0100
commit7989505bf43c6dd0ea846f075337261f52e7bd5f (patch)
treeeb5257eca5e798e63f48dfb39fb81fc20ed50d50 /inc
parentdfabc6f837023ac4aaade2fddaa98a3a6777391e (diff)
downloadhoverbit-ble-7989505bf43c6dd0ea846f075337261f52e7bd5f.tar.gz
hoverbit-ble-7989505bf43c6dd0ea846f075337261f52e7bd5f.zip
:art: Use extern MicroBit instead of sending pointer to classes
Diffstat (limited to 'inc')
-rw-r--r--inc/HoverBitController.h6
1 files changed, 3 insertions, 3 deletions
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();