setPositionDecimal method

Future<OnyxMessage?> setPositionDecimal(
  1. double lat,
  2. double lon
)

Implementation

Future<OnyxMessage?> setPositionDecimal(double lat, double lon) async {
  var directionLat = 'N';
  var directionLon = 'E';
  if (lat < 0) {
    directionLat = 'S';
    lat = -lat;
  }
  if (lon < 0) {
    directionLon = 'W';
    lon = -lon;
  }
  return sendCmd('SetPosDec $lat,$directionLat,$lon,$directionLon');
}