Plane: vehicle parent class now instantiates AHRS
This commit is contained in:
parent
62869b5be8
commit
71017cb288
@ -198,15 +198,6 @@ private:
|
||||
|
||||
AP_RPM rpm_sensor;
|
||||
|
||||
// Inertial Navigation EKF
|
||||
#if AP_AHRS_NAVEKF_AVAILABLE
|
||||
NavEKF2 EKF2{&ahrs, rangefinder};
|
||||
NavEKF3 EKF3{&ahrs, rangefinder};
|
||||
AP_AHRS_NavEKF ahrs{EKF2, EKF3};
|
||||
#else
|
||||
AP_AHRS_DCM ahrs;
|
||||
#endif
|
||||
|
||||
AP_TECS TECS_controller{ahrs, aparm, landing};
|
||||
AP_L1_Control L1_controller{ahrs, &TECS_controller};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user