mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
StickAccelerationXY: add reseting position to specified coordinates
This commit is contained in:
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;
|
||||
|
||||
@ -54,6 +54,7 @@ public:
|
||||
~StickAccelerationXY() = default;
|
||||
|
||||
void resetPosition();
|
||||
void resetPosition(const matrix::Vector2f &position);
|
||||
void resetVelocity(const matrix::Vector2f &velocity);
|
||||
void resetAcceleration(const matrix::Vector2f &acceleration);
|
||||
void generateSetpoints(matrix::Vector2f stick_xy, const float yaw, const float yaw_sp, const matrix::Vector3f &pos,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user