|
|
|
@ -64,7 +64,7 @@ public:
@@ -64,7 +64,7 @@ public:
|
|
|
|
|
AP_Motors(uint16_t loop_rate, uint16_t speed_hz = AP_MOTORS_SPEED_DEFAULT); |
|
|
|
|
|
|
|
|
|
// singleton support
|
|
|
|
|
static AP_Motors *get_instance(void) { return _instance; } |
|
|
|
|
static AP_Motors *get_singleton(void) { return _singleton; } |
|
|
|
|
|
|
|
|
|
// check initialisation succeeded
|
|
|
|
|
bool initialised_ok() const { return _flags.initialised_ok; } |
|
|
|
@ -244,5 +244,5 @@ protected:
@@ -244,5 +244,5 @@ protected:
|
|
|
|
|
float _thrust_boost_ratio; // choice between highest and second highest motor output for output mixing (0 ~ 1). Zero is normal operation
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
static AP_Motors *_instance; |
|
|
|
|
static AP_Motors *_singleton; |
|
|
|
|
}; |
|
|
|
|