]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/kr_87.cxx
Attempt #1 to sort out confusion between left / right / parking brake
[flightgear.git] / src / Cockpit / kr_87.cxx
index ea3afd644b56350362102ec63cde16c6c1748a37..94e7acca310d90b3aa221485f53db645c92892c3 100644 (file)
@@ -32,7 +32,6 @@
 
 #include <Aircraft/aircraft.hxx>
 #include <Navaids/navlist.hxx>
-#include <Time/FGEventMgr.hxx>
 
 #include "kr_87.hxx"
 
@@ -74,7 +73,7 @@ FGKR_87::FGKR_87() :
     lat_node(fgGetNode("/position/latitude-deg", true)),
     alt_node(fgGetNode("/position/altitude-ft", true)),
     bus_power(fgGetNode("/systems/electrical/outputs/adf", true)),
-    servicable(fgGetNode("/instrumentation/adf/servicable", true)),
+    serviceable(fgGetNode("/instrumentation/adf/serviceable", true)),
     need_update(true),
     valid(false),
     inrange(false),
@@ -114,7 +113,7 @@ FGKR_87::~FGKR_87() {
 
 
 void FGKR_87::init () {
-    servicable->setBoolValue( true );
+    serviceable->setBoolValue( true );
     morse.init();
 }
 
@@ -249,7 +248,7 @@ void FGKR_87::update( double dt ) {
     // Radio
     ////////////////////////////////////////////////////////////////////////
 
-    if ( has_power() && servicable->getBoolValue() ) {
+    if ( has_power() && serviceable->getBoolValue() ) {
         // buttons
         if ( adf_btn == 0 ) {
             ant_mode = 1;
@@ -441,7 +440,7 @@ void FGKR_87::update( double dt ) {
     // cout << "flt = " << flight_timer << " et = " << elapsed_timer 
     //      << " needle = " << needle_deg << endl;
 
-    if ( valid && inrange && servicable->getBoolValue() ) {
+    if ( valid && inrange && serviceable->getBoolValue() ) {
        // play station ident via audio system if on + ant mode,
        // otherwise turn it off
        if ( vol_btn >= 0.01 && audio_btn ) {