mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Move XPlane gnd flag handling from parts to situation
ref T276
This commit is contained in:
committed by
Klaus Basan
parent
10a0575a80
commit
05e0480bb4
@@ -787,6 +787,7 @@ namespace BlackSimPlugin
|
||||
planesPositions.pitches.push_back(interpolatedSituation.getPitch().value(CAngleUnit::deg()));
|
||||
planesPositions.rolls.push_back(interpolatedSituation.getBank().value(CAngleUnit::deg()));
|
||||
planesPositions.headings.push_back(interpolatedSituation.getHeading().value(CAngleUnit::deg()));
|
||||
planesPositions.onGrounds.push_back(interpolatedSituation.getOnGround() == CAircraftSituation::OnGround);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -816,7 +817,6 @@ namespace BlackSimPlugin
|
||||
planesSurfaces.strobeLights.push_back(parts.getLights().isStrobeOn());
|
||||
planesSurfaces.navLights.push_back(parts.getLights().isNavOn());
|
||||
planesSurfaces.lightPatterns.push_back(0);
|
||||
planesSurfaces.onGrounds.push_back(parts.isOnGround());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace BlackSimPlugin
|
||||
m_dbusInterface->callDBus(QLatin1String("setPlanesPositions"),
|
||||
planesPositions.callsigns, planesPositions.latitudes, planesPositions.longitudes,
|
||||
planesPositions.altitudes, planesPositions.pitches, planesPositions.rolls,
|
||||
planesPositions.headings);
|
||||
planesPositions.headings, planesPositions.onGrounds);
|
||||
}
|
||||
|
||||
void CXSwiftBusTrafficProxy::setPlanesSurfaces(const PlanesSurfaces &planesSurfaces)
|
||||
@@ -112,8 +112,7 @@ namespace BlackSimPlugin
|
||||
planesSurfaces.wingSweeps, planesSurfaces.thrusts, planesSurfaces.elevators,
|
||||
planesSurfaces.rudders, planesSurfaces.ailerons,
|
||||
planesSurfaces.landLights, planesSurfaces.beaconLights, planesSurfaces.strobeLights,
|
||||
planesSurfaces.navLights, planesSurfaces.lightPatterns,
|
||||
planesSurfaces.onGrounds);
|
||||
planesSurfaces.navLights, planesSurfaces.lightPatterns);
|
||||
}
|
||||
|
||||
void CXSwiftBusTrafficProxy::setPlaneTransponder(const QString &callsign, int code, bool modeC, bool ident)
|
||||
|
||||
@@ -60,6 +60,7 @@ namespace BlackSimPlugin
|
||||
QList<double> pitches; //!< List of pitches
|
||||
QList<double> rolls; //!< List of rolls
|
||||
QList<double> headings; //!< List of headings
|
||||
QList<bool> onGrounds; //!< List of onGrounds
|
||||
};
|
||||
|
||||
//! Planes surfaces
|
||||
@@ -84,7 +85,6 @@ namespace BlackSimPlugin
|
||||
QList<bool> strobeLights; //!< List of strobeLights
|
||||
QList<bool> navLights; //!< List of navLights
|
||||
QList<int> lightPatterns; //!< List of lightPatterns
|
||||
QList<bool> onGrounds; //!< List of onGrounds
|
||||
};
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user