Browse Source

make latlon negative if south or west

master
mike mcginty 4 years ago
parent
commit
6f65b96039
  1. 4
      MC20_GNSS.cpp

4
MC20_GNSS.cpp

@ -296,13 +296,13 @@ bool GNSS::getCoordinate(void)
if(North_or_South[0] == 'S'){
latitude = 0.0 - latitude;
} else if(North_or_South[0] = 'N'){
latitude = 0.0 - latitude;
latitude = 0.0 + latitude;
}
if(West_or_East[0] == 'W'){
longitude = 0.0 - longitude;
} else if(West_or_East[0] = 'E'){
longitude = 0.0 - longitude;
longitude = 0.0 + longitude;
}
doubleToString(longitude, latitude);

Loading…
Cancel
Save