AP_Mount: use AP_AHRS_TYPE instead of AP_AHRS_MOUNT
This commit is contained in:
parent
f92c711d14
commit
dff899647f
@ -386,7 +386,7 @@ const AP_Param::GroupInfo AP_Mount::var_info[] PROGMEM = {
|
||||
AP_GROUPEND
|
||||
};
|
||||
|
||||
AP_Mount::AP_Mount(const AP_AHRS_MOUNT &ahrs, const struct Location ¤t_loc) :
|
||||
AP_Mount::AP_Mount(const AP_AHRS_TYPE &ahrs, const struct Location ¤t_loc) :
|
||||
_ahrs(ahrs),
|
||||
_current_loc(current_loc),
|
||||
_num_instances(0),
|
||||
|
@ -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:
|
||||
};
|
||||
|
||||
// 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:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user