mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Ref T412, Ref T227, lists/parts improvements
* Ctor with timestamp * detect/improved state detection (e.g. "takeoff") * objects outside range
This commit is contained in:
@@ -35,6 +35,13 @@ namespace BlackMisc
|
||||
m_spoilersOut(spoilersOut), m_isOnGround(onGround)
|
||||
{}
|
||||
|
||||
CAircraftParts::CAircraftParts(const CAircraftLights &lights, bool gearDown, int flapsPercent, bool spoilersOut, const CAircraftEngineList &engines, bool onGround, qint64 timestamp)
|
||||
: m_lights(lights), m_engines(engines), m_flapsPercentage(flapsPercent), m_gearDown(gearDown),
|
||||
m_spoilersOut(spoilersOut), m_isOnGround(onGround)
|
||||
{
|
||||
this->setMSecsSinceEpoch(timestamp);
|
||||
}
|
||||
|
||||
QString CAircraftParts::convertToQString(bool i18n) const
|
||||
{
|
||||
return QStringLiteral("ts: ") % this->getFormattedTimestampAndOffset(true) %
|
||||
|
||||
Reference in New Issue
Block a user