reapply PR 18614 to refactored FlightTaskAuto

This commit is contained in:
Thomas
2021-11-30 14:52:16 +01:00
committed by Mathieu Bresciani
parent cbd6e735ad
commit 9345f68a93
2 changed files with 36 additions and 7 deletions
@@ -132,6 +132,14 @@ public:
return {getCurrentAccelerationX(), getCurrentAccelerationY(), getCurrentAccelerationZ()};
}
/**
* @return float Current trajectory acceleration in X and Y
*/
inline Vector2f getCurrentAccelerationXY() const
{
return {getCurrentAccelerationX(), getCurrentAccelerationY()};
}
/**
* @return float Current trajectory velocity in X
*/
@@ -164,6 +172,14 @@ public:
return {getCurrentVelocityX(), getCurrentVelocityY(), getCurrentVelocityZ()};
}
/**
* @return float Current trajectory velocity in X and Y
*/
inline Vector2f getCurrentVelocityXY() const
{
return {getCurrentVelocityX(), getCurrentVelocityY()};
}
/**
* @return float Current trajectory position in X
*/