mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user