Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternate Coordinate Systems #17

Open
sambyte61 opened this issue Jul 16, 2023 · 2 comments
Open

Alternate Coordinate Systems #17

sambyte61 opened this issue Jul 16, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@sambyte61
Copy link

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.

@sambyte61
Copy link
Author

Here is a demo of this implemented. I have not done UTM to MGRS yet only lat long to UTM.

2023-07-16.09-58-09.mp4

@sambyte61
Copy link
Author

sambyte61 commented Jul 16, 2023

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.

@ezod ezod added the enhancement New feature or request label Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants