FlightTasks: use .xy() where possible

to take the first two elements of a Vector3f.
This commit is contained in:
Matthias Grob
2021-02-10 12:03:42 +01:00
parent 7686533abb
commit 82d6cc3dba
5 changed files with 10 additions and 11 deletions
@@ -151,7 +151,7 @@ void StickAccelerationXY::lockPosition(const Vector3f &pos, const matrix::Vector
{
if (_velocity_setpoint.norm_squared() < FLT_EPSILON) {
if (!PX4_ISFINITE(_position_setpoint(0))) {
_position_setpoint = Vector2f(pos);
_position_setpoint = pos.xy();
}
} else {