AJ MacLEOD: don't only turn the adf off with exactly zero voltage
as values like 1E-10 can occur due to binary representation issues; (analog to navradio.cxx)
This commit is contained in:
parent
2e32ccf393
commit
baa16f4995
1 changed files with 2 additions and 2 deletions
|
@ -111,8 +111,8 @@ void
|
|||
ADF::update (double delta_time_sec)
|
||||
{
|
||||
// If it's off, don't waste any time.
|
||||
if (!_electrical_node->getBoolValue() ||
|
||||
!_serviceable_node->getBoolValue()) {
|
||||
if (_electrical_node->getDoubleValue() < 1.0
|
||||
|| !_serviceable_node->getBoolValue()) {
|
||||
set_bearing(delta_time_sec, 90);
|
||||
_ident_node->setStringValue("");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue