reset position-mode line following after position reset

This commit is contained in:
Marco Hauswirth
2024-07-26 18:01:44 +02:00
committed by Silvan Fuhrer
parent 97561d7802
commit 5808dac4bc
3 changed files with 23 additions and 13 deletions
+1
View File
@@ -330,6 +330,7 @@ bool Ekf::resetGlobalPosToExternalObservation(double lat_deg, double lon_deg, fl
&& fuseDirectStateMeasurement(innov(1), innov_var(1), obs_var, State::pos.idx + 1)
) {
ECL_INFO("fused external observation as position measurement");
_state_reset_status.reset_count.posNE++;
_time_last_hor_pos_fuse = _time_delayed_us;
_last_known_pos.xy() = _state.pos.xy();
return true;