-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
43 add gps location and time sync support (#53)
* Initial support for sending GPS sync data. Trial runs show the camera sends 0x5042 every minute or so to request a geo update. Testing shows the NimBLE stack deadlocks if we try to send from the notification callback handler. Thus, we set a variable and send the geo update via the menu handling loop. Set the GPS coordinates to Montevideo to test signed lat/long handling. (This in-lieu of an actual GPS unit). Hardcode the GPS reference time to Christmas day, 2024 at 12:34:56. Correct the final characteristic write to be an indication, not a notification. * Refactor notification handling and various loops. This _seems_ to be more reliable, but needs more testing. * Hook up the M5 GPS unit via the Grove UART. Add a settings menu entry to show real-time GPS information. GPS is active as soon as system is started. Must be in 'Remote Control' shutter menu for GPS data to be properly updated. * Add GPS enable setting. Add header widget for GPS fix/nofix. * Tweak font sizes to work on both M5StickC and M5StickC-Plus. Additionally, redraw the GPS header widget on update. * Fix clang-format errors. --------- Co-authored-by: Guo-Rong Koh <[email protected]>
- Loading branch information
Showing
9 changed files
with
372 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ build_flags = -D FURBLE_VERSION=\"${sysenv.FURBLE_VERSION}\" | |
lib_deps = | ||
Battery Sense | ||
[email protected] | ||
mikalhart/[email protected] | ||
|
||
[env] | ||
platform = espressif32 | ||
|
Oops, something went wrong.