// autopilot drive properties
_apDrivingFlag = fgGetNode("/autopilot/settings/gps-driving-true-heading", true);
_apTrueHeading = fgGetNode("/autopilot/settings/true-heading-deg",true);
-
+
+ clearScratch();
clearOutput();
}
tie(wp0_node, "ID", SGRawValueMethods<GPS, const char*>
(*this, &GPS::getWP0Ident, NULL));
+
+ tie(_currentWayptNode, "valid", SGRawValueMethods<GPS, bool>
+ (*this, &GPS::getWP1IValid, NULL));
tie(_currentWayptNode, "ID", SGRawValueMethods<GPS, const char*>
(*this, &GPS::getWP1Ident, NULL));
return "";
}
+bool GPS::getWP1IValid() const
+{
+ return _dataValid && _currentWaypt.get();
+}
+
const char* GPS::getWP1Ident() const
{
if ((!_dataValid)||(!_currentWaypt)) {
const char* getWP0Ident() const;
const char* getWP0Name() const;
+ bool getWP1IValid() const;
const char* getWP1Ident() const;
const char* getWP1Name() const;