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:
Klaus Basan
2019-05-23 12:54:45 +02:00
committed by Mat Sutcliffe
parent f7add9f33e
commit 05805f4d89

View File

@@ -359,10 +359,10 @@ namespace BlackSimPlugin
gearHandlePosition = parts.isGearDown() ? 1.0 : 0.0;
const double trail = parts.getFlapsPercent() / 100.0;
const double lead = trail;
flapsTrailingEdgeLeftPercent = trail;
flapsLeadingEdgeRightPercent = trail;
flapsLeadingEdgeLeftPercent = lead;
flapsLeadingEdgeRightPercent = lead;
flapsTrailingEdgeLeftPercent = trail;
flapsTrailingEdgeRightPercent = trail;
flapsLeadingEdgeLeftPercent = lead;
flapsLeadingEdgeRightPercent = lead;
spoilersHandlePosition = parts.isSpoilersOut() ? 1.0 : 0.0;
this->setAllEngines(false); // init