Browse Source

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

master
Paul Riseborough 11 years ago committed by Andrew Tridgell
parent
commit
ab08a5c7d6
  1. 2
      libraries/AP_AHRS/AP_AHRS_NavEKF.cpp

2
libraries/AP_AHRS/AP_AHRS_NavEKF.cpp

@ -192,7 +192,7 @@ void AP_AHRS_NavEKF::set_home(int32_t lat, int32_t lng, int32_t alt_cm) @@ -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);
if (ekf_started) {
EKF.InitialiseFilter();
EKF.ResetPosition();
}
}

Loading…
Cancel
Save