mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Copter: explicitly ask for always using EKF
When instantiating AP_AHRS_NavEKF for ArduCopter, explicitly pass the flag to always use the EKF. The motivation is to move vehicle specifc code out of the general libraries. This patch shouldn't change behavior.
This commit is contained in:
parent
9d2e3157fe
commit
05ae7858e8
@ -183,7 +183,7 @@ private:
|
||||
// Inertial Navigation EKF
|
||||
NavEKF EKF{&ahrs, barometer, sonar};
|
||||
NavEKF2 EKF2{&ahrs, barometer, sonar};
|
||||
AP_AHRS_NavEKF ahrs{ins, barometer, gps, sonar, EKF, EKF2};
|
||||
AP_AHRS_NavEKF ahrs{ins, barometer, gps, sonar, EKF, EKF2, AP_AHRS_NavEKF::FLAG_ALWAYS_USE_EKF};
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
SITL sitl;
|
||||
|
Loading…
Reference in New Issue
Block a user