(legacy) NavRadio: set default power path to nav[0]
Ensure the default power path for all nav-radios is the power output for nav[0], to avoid nav[1] being unpowered in some cases. SF-ID: https://sourceforge.net/p/flightgear/codetickets/2811/
This commit is contained in:
parent
01fb8faf3e
commit
5cf6e4c263
1 changed files with 6 additions and 3 deletions
|
@ -127,9 +127,12 @@ FGNavRadio::FGNavRadio(SGPropertyNode *node) :
|
|||
_gsNeedleDeflectionNorm(0.0),
|
||||
_audioIdent(NULL)
|
||||
{
|
||||
readConfig(node, "nav");
|
||||
|
||||
if (!static_terminalRangeInterp.get()) {
|
||||
// bug: for legacy compatability, all nav-radios should use the nav[0] power output
|
||||
// https://sourceforge.net/p/flightgear/codetickets/2811/
|
||||
setDefaultPowerSupplyPath("/systems/electrical/outputs/nav[0]");
|
||||
readConfig(node, "nav");
|
||||
|
||||
if (!static_terminalRangeInterp.get()) {
|
||||
// one-time interpolator init
|
||||
SGPath path( globals->get_fg_root() );
|
||||
SGPath term = path;
|
||||
|
|
Loading…
Add table
Reference in a new issue