if (_electrical_node->getDoubleValue() < 8.0
|| !_serviceable_node->getBoolValue()
|| !_power_btn_node->getBoolValue() ) {
+ _in_range_node->setBoolValue(false);
_ident_node->setStringValue("");
return;
}
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;
}
search(frequency_khz, longitude_rad, latitude_rad, altitude_m);
if (!_transmitter_valid) {
+ _in_range_node->setBoolValue(false);
_ident_node->setStringValue("");
return;
}
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();