1
0
Fork 0

Merge branch 'jmt/gps' into next

This commit is contained in:
Tim Moore 2010-02-14 00:27:41 +01:00
commit f9bbf802e9

View file

@ -1186,7 +1186,9 @@ double GPS::getWP1MagBearing() const
return -9999.0;
}
return _wp1TrueBearing - _magvar_node->getDoubleValue();
double magBearing = _wp1TrueBearing - _magvar_node->getDoubleValue();
SG_NORMALIZE_RANGE(magBearing, 0.0, 360.0);
return magBearing;
}
double GPS::getWP1CourseDeviation() const