GPS: work around aircraft with missing power.
This restores compatibility with 2.10 and previous versions, where even explicit (non default) GPS ignores power requirements.
This commit is contained in:
parent
fb30e3609e
commit
26a8ffb44e
1 changed files with 4 additions and 1 deletions
|
@ -287,7 +287,10 @@ GPS::update (double delta_time_sec)
|
|||
{
|
||||
if (!_defaultGPSMode) {
|
||||
// If it's off, don't bother.
|
||||
if (!_serviceable_node->getBoolValue() || !_electrical_node->getBoolValue()) {
|
||||
// check if value is defined, since many aircraft don't define an output
|
||||
// for the GPS, but expect the default one to work.
|
||||
bool elecOn = !_electrical_node->hasValue() || _electrical_node->getBoolValue();
|
||||
if (!_serviceable_node->getBoolValue() || !elecOn) {
|
||||
clearOutput();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue