X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fadf.cxx;h=bfde62385875806c35ea7e3d2cc2bdc7cc56dbe6;hb=5a05e30abd3542b288c09e401a8aee3c5097bf57;hp=805be10409132e9b72975beebf245421344916a3;hpb=43109feb0c6a2ab35d5f1ee9318daadff811cc88;p=flightgear.git diff --git a/src/Instrumentation/adf.cxx b/src/Instrumentation/adf.cxx index 805be1040..bfde62385 100644 --- a/src/Instrumentation/adf.cxx +++ b/src/Instrumentation/adf.cxx @@ -124,6 +124,7 @@ ADF::update (double delta_time_sec) if (_electrical_node->getDoubleValue() < 8.0 || !_serviceable_node->getBoolValue() || !_power_btn_node->getBoolValue() ) { + _in_range_node->setBoolValue(false); _ident_node->setStringValue(""); return; } @@ -131,6 +132,7 @@ ADF::update (double delta_time_sec) string mode = _mode_node->getStringValue(); if (mode == "ant" || mode == "test") set_bearing(delta_time_sec, 90); if (mode != "bfo" && mode != "adf") { + _in_range_node->setBoolValue(false); _ident_node->setStringValue(""); return; } @@ -155,6 +157,7 @@ ADF::update (double delta_time_sec) search(frequency_khz, longitude_rad, latitude_rad, altitude_m); if (!_transmitter_valid) { + _in_range_node->setBoolValue(false); _ident_node->setStringValue(""); return; } @@ -197,7 +200,7 @@ ADF::update (double delta_time_sec) if ( sound != NULL ) sound->set_volume( volume ); else - SG_LOG( SG_GENERAL, SG_ALERT, "Can't find adf-ident sound" ); + SG_LOG( SG_INSTR, SG_ALERT, "Can't find adf-ident sound" ); } time_t cur_time = globals->get_time_params()->get_cur_time();