mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 10:45:37 +08:00
Utility function
This commit is contained in:
committed by
Mat Sutcliffe
parent
25b30ccf34
commit
a7ae5290d0
@@ -184,6 +184,9 @@ namespace BlackSimPlugin
|
|||||||
|
|
||||||
//! Above ground ft
|
//! Above ground ft
|
||||||
double aboveGroundFt() const { return altitudeFt - elevationFt; }
|
double aboveGroundFt() const { return altitudeFt - elevationFt; }
|
||||||
|
|
||||||
|
//! Above ground ft
|
||||||
|
bool isOnGround() const { return this->aboveGroundFt() < 1.0; }
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Data struct simulator environment
|
//! Data struct simulator environment
|
||||||
|
|||||||
Reference in New Issue
Block a user