]> git.mxchange.org Git - flightgear.git/commitdiff
Ron Jensen:
authortorsten <torsten>
Sun, 25 Oct 2009 14:45:23 +0000 (14:45 +0000)
committerTim Moore <timoore@redhat.com>
Fri, 6 Nov 2009 22:46:02 +0000 (23:46 +0100)
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.

src/Instrumentation/kt_70.cxx

index 7dd77f9fe7185357e7ea9a7baeaceee28eaab0df..99787b71fde2674f9362ec1ebf13e9e3da301fad 100644 (file)
@@ -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;