#include <Aircraft/aircraft.hxx>
#include <Navaids/navlist.hxx>
-#include <Time/FGEventMgr.hxx>
#include "kr_87.hxx"
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),
void FGKR_87::init () {
- servicable->setBoolValue( true );
+ serviceable->setBoolValue( true );
morse.init();
}
// Radio
////////////////////////////////////////////////////////////////////////
- if ( has_power() && servicable->getBoolValue() ) {
+ if ( has_power() && serviceable->getBoolValue() ) {
// buttons
if ( adf_btn == 0 ) {
ant_mode = 1;
// 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 ) {