mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Slow parts update and using event for flaps, as sim. variable sets the flaps, but then always retracts it.
https://swift-project.slack.com/archives/G96QTUBEG/p1558454646002200
This commit is contained in:
committed by
Mat Sutcliffe
parent
b1d265bc0b
commit
f7add9f33e
@@ -357,8 +357,12 @@ namespace BlackSimPlugin
|
||||
void DataDefinitionRemoteAircraftPartsWithoutLights::initFromParts(const CAircraftParts &parts)
|
||||
{
|
||||
gearHandlePosition = parts.isGearDown() ? 1.0 : 0.0;
|
||||
flapsTrailingEdgeLeftPercent = flapsTrailingEdgeRightPercent = parts.getFlapsPercent() / 100.0;
|
||||
flapsLeadingEdgeLeftPercent = flapsLeadingEdgeRightPercent = parts.getFlapsPercent() * 0.2 / 100.0;
|
||||
const double trail = parts.getFlapsPercent() / 100.0;
|
||||
const double lead = trail;
|
||||
flapsTrailingEdgeLeftPercent = trail;
|
||||
flapsLeadingEdgeRightPercent = trail;
|
||||
flapsLeadingEdgeLeftPercent = lead;
|
||||
flapsLeadingEdgeRightPercent = lead;
|
||||
spoilersHandlePosition = parts.isSpoilersOut() ? 1.0 : 0.0;
|
||||
this->setAllEngines(false); // init
|
||||
|
||||
|
||||
Reference in New Issue
Block a user