From 4c151936939abf4bd913d8e9f299d246b1343580 Mon Sep 17 00:00:00 2001 From: Roland Rossgotterer Date: Tue, 25 Dec 2018 22:55:56 +0100 Subject: [PATCH] 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 --- src/xswiftbus/service.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xswiftbus/service.h b/src/xswiftbus/service.h index 5084aefd9..6583e9479 100644 --- a/src/xswiftbus/service.h +++ b/src/xswiftbus/service.h @@ -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 m_strobeLightsOn; DataRef m_taxiLightsOn; DataRef m_flapsReployRatio; - DataRef m_gearReployRatio; + ArrayDataRef m_gearReployRatio; DataRef m_numberOfEngines; ArrayDataRef m_enginesN1Percentage; DataRef m_speedBrakeRatio;