]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/kt_70.cxx
Autopilot: clean up the helpers code (which drives the various /internal/) properties...
[flightgear.git] / src / Instrumentation / kt_70.cxx
index 4286aeafbdec5b205b7ccf6ab7dbfbb12c680979..99787b71fde2674f9362ec1ebf13e9e3da301fad 100644 (file)
@@ -16,7 +16,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
@@ -94,6 +94,7 @@ void FGKT_70::init ()
     bus_power = fgGetNode("/systems/electrical/outputs/transponder", true);
     serviceable_node = (node->getChild("inputs", 0, true))
        ->getChild("serviceable", 0, true);
+    serviceable_node->setBoolValue(true);
 }
 
 
@@ -230,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;