Skip to content

Add GPS Time (0x03), MAVLink parsing for GPS Time, Temp - #3642

Merged
pkendall64 merged 2 commits into
ExpressLRS:masterfrom
jlpoltrack:MAVLink-GPS-Time-Temp
May 25, 2026
Merged

pkendall64 merged 2 commits into
ExpressLRS:masterfrom
jlpoltrack:MAVLink-GPS-Time-Temp

Conversation

@jlpoltrack

Copy link
Copy Markdown
Contributor
  • Add GPS Time message to CRSF Protocol
  • Add MAVLink Parsing of System Time to populate GPS Time
  • Add MAVLink Parsing of Scaled Pressure to send Temp

EdgeTx support for GPS Time (shows up as Date sensor) added via: EdgeTX/edgetx#7317 allows for automatic RTC adjust.

Screenshot, refer to lines 31, 32:
screen-2026-05-06-082841

@pkendall64 pkendall64 added enhancement 🪄 New feature or request V4.1 🍑 labels May 11, 2026

@CapnBry CapnBry left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done. Just a couple minor semantic changes (need to be made to both new items). I know a lot of our existing code uses syntax similar to your changes but we're slowly trying to get it more standardized and using the same syntax.

  • Please put the local parameter declaration all one one line and use the {} uniform initialization instead of assignment.
  • Instead of the forced cast of the header, use the union's h field which is of the correct type and placement.

Comment thread src/lib/MAVLink/MAVLink.cpp Resolved
Comment thread src/lib/MAVLink/MAVLink.cpp Resolved
@pkendall64
pkendall64 merged commit ae5c7e3 into ExpressLRS:master May 25, 2026
26 checks passed
@jlpoltrack
jlpoltrack deleted the MAVLink-GPS-Time-Temp branch May 25, 2026 22:38
@zhouruixi

Copy link
Copy Markdown

Since ELRS 4.0.0 A NMEA-output GPS can now be attached directly (115200 baud) for sending position, ground speed. Altitude, and satellite count..

Sending GPS time will be added in the future? @CapnBry

@pkendall64

Copy link
Copy Markdown
Collaborator

Since ELRS 4.0.0 A NMEA-output GPS can now be attached directly (115200 baud) for sending position, ground speed. Altitude, and satellite count..

Sending GPS time will be added in the future? @CapnBry

That a good enhancement to the SerialGPS code. Can you open a separate issue and we'll label it "Enhancement".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 🪄 New feature or request V4.1 🍑

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants