1
0
Fork 0

(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:
James Turner 2023-06-15 13:02:45 +01:00
parent 01fb8faf3e
commit 5cf6e4c263

View file

@ -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;