mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 11:33:33 +08:00
reapply PR 18614 to refactored FlightTaskAuto
This commit is contained in:
committed by
Mathieu Bresciani
parent
cbd6e735ad
commit
9345f68a93
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user