]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed navradio when shutting down/restarting nav receiver.
authorThorsten Brehm <brehm@patagonia.southamerica>
Tue, 5 Oct 2010 20:34:08 +0000 (22:34 +0200)
committerThorsten Brehm <brehm@patagonia.southamerica>
Tue, 5 Oct 2010 20:34:08 +0000 (22:34 +0200)
"nav-loc" and "has_gs" properties were not updated when nav receiver was rebooted.

Shutting down the nav receiver clears all nav outputs (including "nav-loc" and "has_gs").
=> When nav receiver is powered again, all outputs must be updated.
=> "nav-loc" and "has_gs" are only updated when active nav station changes.
=> old nav station must be cleared on shutdown to enforce update on nav reboot...

src/Instrumentation/navradio.cxx

index 0970cae5aca7bae141869d91b88429039d51358b..2aac4b26d1cc4fbdd2c0db4a64c9544f110c2bca 100644 (file)
@@ -390,6 +390,7 @@ void FGNavRadio::clearOutputs()
   
   _dmeInRange = false;
   _operable = false;
+  _navaid = NULL;
 }
 
 void FGNavRadio::updateReceiver(double dt)