From 692445fe3ef21027e2a3976733a163ea9ab206b7 Mon Sep 17 00:00:00 2001 From: curt Date: Sun, 1 Sep 2002 03:02:11 +0000 Subject: [PATCH] Read the com1/2 on/off switch. --- src/Network/atc610x.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Network/atc610x.cxx b/src/Network/atc610x.cxx index f2a9a34d4..1541814ed 100644 --- a/src/Network/atc610x.cxx +++ b/src/Network/atc610x.cxx @@ -488,9 +488,11 @@ bool FGATC610x::do_analog_in() { fgSetFloat( "/controls/throttle[0]", tmp ); fgSetFloat( "/controls/throttle[1]", tmp ); +#if 0 // rudder tmp = (float)(ATC_RUDDER_CENTER - analog_in_data[10]) / 145.0f; fgSetFloat( "/controls/rudder", tmp ); +#endif // nav1 volume tmp = (float)analog_in_data[25] / 1024.0f; @@ -571,6 +573,10 @@ bool FGATC610x::do_radio_switches() { fgSetInt( "/radios/dme/switch-position", 3 ); } + // Com1 Power + fgSetBool( "/radios/comm[0]/inputs/power-btn", + radio_switch_data[7] & 0x01 ); + // Com1 Swap int com1_swap = !((radio_switch_data[7] >> 1) & 0x01); static int last_com1_swap; @@ -582,6 +588,10 @@ bool FGATC610x::do_radio_switches() { } last_com1_swap = com1_swap; + // Com2 Power + fgSetBool( "/radios/comm[1]/inputs/power-btn", + radio_switch_data[15] & 0x01 ); + // Com2 Swap int com2_swap = !((radio_switch_data[15] >> 1) & 0x01); static int last_com2_swap; -- 2.39.5