mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 23:33:33 +08:00
ekf2: minor position/velocity reset cleanup
- try to use avoid resetVelocity() call where possible - reset timeouts centrally
This commit is contained in:
@@ -88,8 +88,8 @@ void Ekf::startFakePosFusion()
|
||||
void Ekf::resetFakePosFusion()
|
||||
{
|
||||
_last_known_posNE = _state.pos.xy();
|
||||
resetHorizontalPosition();
|
||||
resetVelocity();
|
||||
resetHorizontalPositionToLastKnown();
|
||||
resetHorizontalVelocityToZero();
|
||||
_time_last_fake_pos_fuse = _time_last_imu;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user