Currently, the only coordinate system supported by the app is lat long. The app could also support UTM and MGRS coordinate systems based on the lat long values.
Based on values of GpsUart::status::latitude and GpsUart::status::longitude you could be able to convert them into a UTM coordinate system. And from the UTM zone, northing, and easting, you could convert that into a MGRS grid.
Visualizing the current coordinates in alternative coordinate systems could be achieved by a similar method to how changing the baudrate of the GpsUart is implemented by holding down on the "up" arrow key. By long pressing the "down" arrow key, you could switch between viewing the coordinates in lat long, UTM, and or MGRS.
For the conversion of lat long to UTM, I utilized code written by Chuck Gantz which can be found here. It was originally written in cpp, so I converted it to native c.
Currently, the only coordinate system supported by the app is lat long. The app could also support UTM and MGRS coordinate systems based on the lat long values.
Based on values of
GpsUart::status::latitude
andGpsUart::status::longitude
you could be able to convert them into a UTM coordinate system. And from the UTM zone, northing, and easting, you could convert that into a MGRS grid.Visualizing the current coordinates in alternative coordinate systems could be achieved by a similar method to how changing the baudrate of the
GpsUart
is implemented by holding down on the "up" arrow key. By long pressing the "down" arrow key, you could switch between viewing the coordinates in lat long, UTM, and or MGRS.