Syd Adams: only define overspeed-indicator properties when enabled.
This commit is contained in:
parent
65ad38ccae
commit
b1855b34c6
1 changed files with 23 additions and 21 deletions
|
@ -43,13 +43,14 @@ AirspeedIndicator::init ()
|
|||
_speed_node = node->getChild("indicated-speed-kt", 0, true);
|
||||
|
||||
// overspeed-indicator properties
|
||||
if (_has_overspeed) {
|
||||
_ias_limit_node = node->getNode("ias-limit",0, true);
|
||||
_mach_limit_node = node->getNode("mach-limit",0, true);
|
||||
_alt_threshold_node = node->getNode("alt-threshold",0, true);
|
||||
_airspeed_limit = node->getChild("airspeed-limit-kt", 0, true);
|
||||
|
||||
if (!_ias_limit_node->hasValue()) {
|
||||
_ias_limit_node->setDoubleValue(250.0);
|
||||
_ias_limit_node->setDoubleValue(248.0);
|
||||
}
|
||||
|
||||
if (!_mach_limit_node->hasValue()) {
|
||||
|
@ -64,6 +65,7 @@ AirspeedIndicator::init ()
|
|||
"/instrumentation/altimeter/pressure-alt-ft");
|
||||
_pressure_alt = fgGetNode(paSource.c_str(), true);
|
||||
_mach = fgGetNode("/velocities/mach", true);
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef FPSTOKTS
|
||||
|
|
Loading…
Add table
Reference in a new issue