mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 21:53:34 +08:00
flight_mode_manager: pass deltas on estimator reset
This commit is contained in:
+2
-2
@@ -69,12 +69,12 @@ void FlightTaskManualAltitudeSmoothVel::reActivate()
|
||||
_smoothing.reset(0.f, 0.f, _position(2));
|
||||
}
|
||||
|
||||
void FlightTaskManualAltitudeSmoothVel::_ekfResetHandlerPositionZ()
|
||||
void FlightTaskManualAltitudeSmoothVel::_ekfResetHandlerPositionZ(float delta_z)
|
||||
{
|
||||
_smoothing.setCurrentPosition(_position(2));
|
||||
}
|
||||
|
||||
void FlightTaskManualAltitudeSmoothVel::_ekfResetHandlerVelocityZ()
|
||||
void FlightTaskManualAltitudeSmoothVel::_ekfResetHandlerVelocityZ(float delta_vz)
|
||||
{
|
||||
_smoothing.setCurrentVelocity(_velocity(2));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user