|
|
|
@ -44,11 +44,6 @@ class AP_Mount_SToRM32;
@@ -44,11 +44,6 @@ class AP_Mount_SToRM32;
|
|
|
|
|
This is a workaround to allow the MAVLink backend access to the |
|
|
|
|
SmallEKF. It would be nice to find a neater solution to this |
|
|
|
|
*/ |
|
|
|
|
#if AP_AHRS_NAVEKF_AVAILABLE |
|
|
|
|
#define AP_AHRS_MOUNT AP_AHRS_NavEKF |
|
|
|
|
#else |
|
|
|
|
#define AP_AHRS_MOUNT AP_AHRS |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
class AP_Mount |
|
|
|
|
{ |
|
|
|
@ -71,7 +66,7 @@ public:
@@ -71,7 +66,7 @@ public:
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// Constructor
|
|
|
|
|
AP_Mount(const AP_AHRS_MOUNT &ahrs, const struct Location ¤t_loc); |
|
|
|
|
AP_Mount(const AP_AHRS_TYPE &ahrs, const struct Location ¤t_loc); |
|
|
|
|
|
|
|
|
|
// init - detect and initialise all mounts
|
|
|
|
|
void init(const AP_SerialManager& serial_manager); |
|
|
|
@ -128,7 +123,7 @@ public:
@@ -128,7 +123,7 @@ public:
|
|
|
|
|
protected: |
|
|
|
|
|
|
|
|
|
// private members
|
|
|
|
|
const AP_AHRS_MOUNT &_ahrs; |
|
|
|
|
const AP_AHRS_TYPE &_ahrs; |
|
|
|
|
const struct Location &_current_loc; // reference to the vehicle's current location
|
|
|
|
|
|
|
|
|
|
// frontend parameters
|
|
|
|
|