Browse Source

GNSS yaw: allow unlimited resets on ground

master
bresch 4 years ago committed by Mathieu Bresciani
parent
commit
30c7a596af
  1. 5
      src/modules/ekf2/EKF/control.cpp

5
src/modules/ekf2/EKF/control.cpp

@ -784,7 +784,10 @@ void Ekf::controlGpsYawFusion(bool gps_checks_passing, bool gps_checks_failing)
if (_nb_gps_yaw_reset_available > 0) { if (_nb_gps_yaw_reset_available > 0) {
// Data seems good, attempt a reset // Data seems good, attempt a reset
resetYawToGps(); resetYawToGps();
_nb_gps_yaw_reset_available--;
if (_control_status.flags.in_air) {
_nb_gps_yaw_reset_available--;
}
} else if (starting_conditions_passing) { } else if (starting_conditions_passing) {
// Data seems good, but previous reset did not fix the issue // Data seems good, but previous reset did not fix the issue

Loading…
Cancel
Save