Skip to content

Refactor GPS firmware to API-only with event handling#7

Open
Robotmad wants to merge 2 commits into
Robotmad:mainfrom
TeamRobotmad:main
Open

Refactor GPS firmware to API-only with event handling#7
Robotmad wants to merge 2 commits into
Robotmad:mainfrom
TeamRobotmad:main

Conversation

@Robotmad

@Robotmad Robotmad commented Jun 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

mbooth101 and others added 2 commits May 22, 2026 17:51
Major changes:

* Remove the graphical app portion, the firmware now runs in the
  background only
* Provide 3 API methods for getting the current position as a (lat, lon)
  tuple, ground speed in knots, and course in degrees from true north
* Add a GPSEvent type and emit events every time a location fix message is
  received from the GPS
* In both the API and the GPSEvent, when the fix is lost, the position
  value will be None instead of a tuple

Other fixes:

* Firmware version bumped to 2
* Add a character timeout to the UART configuration to improve the
  ability of uart.readline() to read a full line, and reduce parsing
  errors caused by reading partial lines
* Override background_task to manage sleep for longer between UART
  message bursts, to reduce the impact of the blocking UART timeout on
  other apps
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.

2 participants