mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
[XP] Set velocity to zero when paused
This commit is contained in:
@@ -157,16 +157,16 @@ namespace XSwiftBus
|
|||||||
|
|
||||||
//! Get aircraft local velocity in world coordinates meters per second
|
//! Get aircraft local velocity in world coordinates meters per second
|
||||||
//! @{
|
//! @{
|
||||||
double getLocalXVelocityMps() const { return m_velocityX.get(); }
|
double getLocalXVelocityMps() const { return isPaused() ? 0 : m_velocityX.get(); }
|
||||||
double getLocalYVelocityMps() const { return m_velocityY.get(); }
|
double getLocalYVelocityMps() const { return isPaused() ? 0 : m_velocityY.get(); }
|
||||||
double getLocalZVelocityMps() const { return m_velocityZ.get(); }
|
double getLocalZVelocityMps() const { return isPaused() ? 0 : m_velocityZ.get(); }
|
||||||
//! @}
|
//! @}
|
||||||
|
|
||||||
//! Get aircraft angular velocity in radians per second
|
//! Get aircraft angular velocity in radians per second
|
||||||
//! @{
|
//! @{
|
||||||
double getPitchRadPerSec() const { return m_pitchVelocity.get(); }
|
double getPitchRadPerSec() const { return isPaused() ? 0 : m_pitchVelocity.get(); }
|
||||||
double getRollRadPerSec() const { return m_rollVelocity.get(); }
|
double getRollRadPerSec() const { return isPaused() ? 0 : m_rollVelocity.get(); }
|
||||||
double getHeadingRadPerSec() const { return m_headingVelocity.get(); }
|
double getHeadingRadPerSec() const { return isPaused() ? 0 : m_headingVelocity.get(); }
|
||||||
//! @}
|
//! @}
|
||||||
|
|
||||||
//! Get whether any wheel is on the ground
|
//! Get whether any wheel is on the ground
|
||||||
|
|||||||
Reference in New Issue
Block a user