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

Advanced Location Management #231

Open
wants to merge 141 commits into
base: main
Choose a base branch
from
Open

Conversation

randogoth
Copy link
Contributor

@randogoth randogoth commented Mar 25, 2023

Two watch faces Place and Places.

The first one is an editor for the watch location that supports several different coordinate notations:

  • Latitude & Longitude in both decimal format and Degrees, Minutes, Seconds.
  • Open Location Code (aka. PlusCode) and Geohash fixed to 10 digits.

The second one is an optional addition to the first and allows to save up to 5 different locations with a custom name and quickly swap between them.

-------> More details in the header files. (place_face.h, places_face.h)

This also attempts to establish a file <place.loc> as a standard for having the location optionally stored in a higher precision than the two decimal digits of the location saved in the watche's register.

File format is basically a dump of the following struct with two integer representations of a five digit decimal coordinate (DD.DDDDD * 100000)

typedef struct {
    int32_t latitude : 25;  // max value  90,000,00 = 24 bits + 1 for sign
    int32_t longitude : 26; // max value 180,000,00 = 25 bits + 1 for sign
} coordinate_t;

@randogoth
Copy link
Contributor Author

fixed all warnings

@randogoth
Copy link
Contributor Author

randogoth commented Jun 13, 2024

@joeycastillo bumping this due to #378

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant