mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 21:23:35 +08:00
flight_mode_manager: pass deltas on estimator reset
This commit is contained in:
+2
-2
@@ -77,12 +77,12 @@ bool FlightTaskManualAcceleration::update()
|
||||
return ret;
|
||||
}
|
||||
|
||||
void FlightTaskManualAcceleration::_ekfResetHandlerPositionXY()
|
||||
void FlightTaskManualAcceleration::_ekfResetHandlerPositionXY(const matrix::Vector2f &delta_xy)
|
||||
{
|
||||
_stick_acceleration_xy.resetPosition();
|
||||
}
|
||||
|
||||
void FlightTaskManualAcceleration::_ekfResetHandlerVelocityXY()
|
||||
void FlightTaskManualAcceleration::_ekfResetHandlerVelocityXY(const matrix::Vector2f &delta_vxy)
|
||||
{
|
||||
_stick_acceleration_xy.resetVelocity(_velocity.xy());
|
||||
}
|
||||
|
||||
+2
-2
@@ -56,6 +56,6 @@ private:
|
||||
StickAccelerationXY _stick_acceleration_xy;
|
||||
StickYaw _stick_yaw;
|
||||
|
||||
void _ekfResetHandlerPositionXY() override;
|
||||
void _ekfResetHandlerVelocityXY() override;
|
||||
void _ekfResetHandlerPositionXY(const matrix::Vector2f &delta_xy) override;
|
||||
void _ekfResetHandlerVelocityXY(const matrix::Vector2f &delta_vxy) override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user