From 228ab8602cfc7636e5e63bdd404adc0452184a70 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Sun, 16 Dec 2018 20:46:57 +0000 Subject: [PATCH] Ref T459 Using 8.33 kHz spacing COM radio datarefs. --- src/xswiftbus/service.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/xswiftbus/service.h b/src/xswiftbus/service.h index cbffa05c8..5084aefd9 100644 --- a/src/xswiftbus/service.h +++ b/src/xswiftbus/service.h @@ -146,16 +146,16 @@ namespace XSwiftBus bool getAllWheelsOnGround() const { return m_onGroundAll.get(); } //! Get the current COM1 active frequency in kHz - int getCom1ActiveKhz() const { return m_com1Active.get() * 10; } + int getCom1ActiveKhz() const { return m_com1Active.get(); } //! Get the current COM1 standby frequency in kHz - int getCom1StandbyKhz() const { return m_com1Standby.get() * 10; } + int getCom1StandbyKhz() const { return m_com1Standby.get(); } //! Get the current COM2 active frequency in kHz - int getCom2ActiveKhz() const { return m_com2Active.get() * 10; } + int getCom2ActiveKhz() const { return m_com2Active.get(); } //! Get the current COM2 standby frequency in kHz - int getCom2StandbyKhz() const { return m_com2Standby.get() * 10; } + int getCom2StandbyKhz() const { return m_com2Standby.get(); } //! Get the current transponder code in decimal int getTransponderCode() const { return m_xpdrCode.get(); } @@ -185,16 +185,16 @@ namespace XSwiftBus double getQNHInHg() const { return m_qnhInhg.get(); } //! Set the current COM1 active frequency in kHz - void setCom1ActiveKhz(int freq) { m_com1Active.set(freq / 10); } + void setCom1ActiveKhz(int freq) { m_com1Active.set(freq); } //! Set the current COM1 standby frequency in kHz - void setCom1StandbyKhz(int freq) { m_com1Standby.set(freq / 10); } + void setCom1StandbyKhz(int freq) { m_com1Standby.set(freq); } //! Set the current COM2 active frequency in kHz - void setCom2ActiveKhz(int freq) { m_com2Active.set(freq / 10); } + void setCom2ActiveKhz(int freq) { m_com2Active.set(freq); } //! Set the current COM2 standby frequency in kHz - void setCom2StandbyKhz(int freq) { m_com2Standby.set(freq / 10); } + void setCom2StandbyKhz(int freq) { m_com2Standby.set(freq); } //! Set the current transponder code in decimal void setTransponderCode(int code) { m_xpdrCode.set(code); } @@ -276,10 +276,10 @@ namespace XSwiftBus DataRef m_heading; DataRef m_onGroundAny; DataRef m_onGroundAll; - DataRef m_com1Active; - DataRef m_com1Standby; - DataRef m_com2Active; - DataRef m_com2Standby; + DataRef m_com1Active; + DataRef m_com1Standby; + DataRef m_com2Active; + DataRef m_com2Standby; DataRef m_xpdrCode; DataRef m_xpdrMode; DataRef m_xpdrIdent;