- // Set Units
- // m if true, ft if false
- inline void SetAltUnitsSI(bool b) { _altUnits = (b ? GPS_ALT_UNITS_M : GPS_ALT_UNITS_FT); }
- // Returns true if alt units are SI (m), false if ft
- inline bool GetAltUnitsSI() { return(_altUnits == GPS_ALT_UNITS_M ? true : false); }
- // km and k/h if true, nm and kt if false
- inline void SetDistVelUnitsSI(bool b) { _distUnits = (b ? GPS_DIST_UNITS_KM : GPS_DIST_UNITS_NM); _velUnits = (b ? GPS_VEL_UNITS_KPH : GPS_VEL_UNITS_KT); }
- // Returns true if dist/vel units are SI
- inline bool GetDistVelUnitsSI() { return(_distUnits == GPS_DIST_UNITS_KM && _velUnits == GPS_VEL_UNITS_KPH ? true : false); }
- // Set baro units - 1 = in, 2 = mB, 3 = hP Wrapping if for the convienience of the GPS setter.
- void SetBaroUnits(int n, bool wrap = false);
- // Get baro units: 1 = in, 2 = mB, 3 = hP
- inline int GetBaroUnits() { return((int)_baroUnits); }
-