Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
fakePosFusion: reset _last_known_posNE to current state when starting (
Browse files Browse the repository at this point in the history
…#943)

* [AUTO COMMIT] update change indication
  • Loading branch information
bresch authored Dec 15, 2020
1 parent 9d22f14 commit 5ccb8b4
Show file tree
Hide file tree
Showing 3 changed files with 729 additions and 728 deletions.
1 change: 1 addition & 0 deletions EKF/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,7 @@ void Ekf::controlFakePosFusion()

// Reset position and velocity states if we re-commence this aiding method
if (isTimedOut(_time_last_fake_pos, (uint64_t)4e5)) {
_last_known_posNE = _state.pos.xy();
resetHorizontalPosition();
resetVelocity();
_fuse_hpos_as_odom = false;
Expand Down
Loading

0 comments on commit 5ccb8b4

Please sign in to comment.