mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 14:03:33 +08:00
StickAccelerationXY: add reseting position to specified coordinates
This commit is contained in:
committed by
Daniel Agar
parent
578d57a060
commit
bb9f167d79
@@ -54,6 +54,11 @@ void StickAccelerationXY::resetPosition()
|
||||
_position_setpoint.setNaN();
|
||||
}
|
||||
|
||||
void StickAccelerationXY::resetPosition(const matrix::Vector2f &position)
|
||||
{
|
||||
_position_setpoint = position;
|
||||
}
|
||||
|
||||
void StickAccelerationXY::resetVelocity(const matrix::Vector2f &velocity)
|
||||
{
|
||||
_velocity_setpoint = velocity;
|
||||
|
||||
Reference in New Issue
Block a user