AP_AHRS : altered NavEKF set home to reset position instead of reset filter

This commit is contained in:
Paul Riseborough 2014-01-31 09:47:18 +11:00 committed by Andrew Tridgell
parent d0831c708d
commit ab08a5c7d6
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ void AP_AHRS_NavEKF::set_home(int32_t lat, int32_t lng, int32_t alt_cm)
{ {
AP_AHRS_DCM::set_home(lat, lng, alt_cm); AP_AHRS_DCM::set_home(lat, lng, alt_cm);
if (ekf_started) { if (ekf_started) {
EKF.InitialiseFilter(); EKF.ResetPosition();
} }
} }