5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-03-08 06:34:22 -04:00

Copter: fix ekf check to always call mode_requires_gps

This commit is contained in:
murata 2016-10-11 23:55:10 +09:00 committed by Randy Mackay
parent c64a020384
commit f3a035694a

View File

@ -129,7 +129,7 @@ void Copter::failsafe_ekf_event()
} }
// do nothing if not in GPS flight mode and ekf-action is not land-even-stabilize // do nothing if not in GPS flight mode and ekf-action is not land-even-stabilize
if (!mode_requires_GPS(control_mode) && (control_mode != LAND) && (g.fs_ekf_action != FS_EKF_ACTION_LAND_EVEN_STABILIZE)) { if ((control_mode != LAND) && !mode_requires_GPS(control_mode) && (g.fs_ekf_action != FS_EKF_ACTION_LAND_EVEN_STABILIZE)) {
return; return;
} }