mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Read deploy_ratio as ArrayDataRef and not as single DataRef
Summary: deploy_ratio is an array dataref of size 10. Reading it via XPLMGetDatad returned always 0.0 as invalid. Reviewers: #swift_pilot_client, msutcliffe Reviewed By: #swift_pilot_client, msutcliffe Maniphest Tasks: T474 Differential Revision: https://dev.swift-project.org/D77
This commit is contained in:
committed by
Mat Sutcliffe
parent
d639187f91
commit
4c15193693
@@ -206,7 +206,7 @@ namespace XSwiftBus
|
||||
double getFlapsDeployRatio() const { return m_flapsReployRatio.get(); }
|
||||
|
||||
//! Get gear deploy ratio, where 0 is up and 1 is down
|
||||
double getGearDeployRatio() const { return m_gearReployRatio.get(); }
|
||||
double getGearDeployRatio() const { return m_gearReployRatio.getAt(0); }
|
||||
|
||||
//! Get the number of engines of current aircraft
|
||||
int getNumberOfEngines() const { return m_numberOfEngines.get(); }
|
||||
@@ -289,7 +289,7 @@ namespace XSwiftBus
|
||||
DataRef<xplane::data::sim::cockpit::electrical::strobe_lights_on> m_strobeLightsOn;
|
||||
DataRef<xplane::data::sim::cockpit::electrical::taxi_light_on> m_taxiLightsOn;
|
||||
DataRef<xplane::data::sim::flightmodel2::controls::flap_handle_deploy_ratio> m_flapsReployRatio;
|
||||
DataRef<xplane::data::sim::flightmodel2::gear::deploy_ratio> m_gearReployRatio;
|
||||
ArrayDataRef<xplane::data::sim::flightmodel2::gear::deploy_ratio> m_gearReployRatio;
|
||||
DataRef<xplane::data::sim::aircraft::engine::acf_num_engines> m_numberOfEngines;
|
||||
ArrayDataRef<xplane::data::sim::flightmodel::engine::ENGN_N1_> m_enginesN1Percentage;
|
||||
DataRef<xplane::data::sim::flightmodel2::controls::speedbrake_ratio> m_speedBrakeRatio;
|
||||
|
||||
Reference in New Issue
Block a user