From: torsten Date: Sun, 25 Oct 2009 14:45:23 +0000 (+0000) Subject: Ron Jensen: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58f303e464b014b78fc9795766a1dabc5ecb4c26;p=flightgear.git Ron Jensen: This little patch makes the KT-70 read 888-8888 when in self-test mode. This is the correct behavior, the current behavior, where it reads the flight level and squawk code in self-test is incorrect. --- diff --git a/src/Instrumentation/kt_70.cxx b/src/Instrumentation/kt_70.cxx index 7dd77f9fe..99787b71f 100644 --- a/src/Instrumentation/kt_70.cxx +++ b/src/Instrumentation/kt_70.cxx @@ -231,13 +231,15 @@ void FGKT_70::update( double dt ) { if ( func_knob == 1 ) { sby_ann = true; - } else if ( func_knob == 2 ) { + } else if ( func_knob == 2 ) { // selftest fl_ann = true; alt_ann = true; gnd_ann = true; on_ann = true; sby_ann = true; reply_ann = true; + id_code = 8888; + flight_level = 888; } else if ( func_knob == 3 ) { fl_ann = true; gnd_ann = true;