Skip to content

Conversation

@oystub
Copy link

@oystub oystub commented Apr 12, 2024

@bugobliterator

The “correct” way to transmit GPS baseline data (and heading) is the RelPosHeading Dronecan message. However, this message type is not supported in any PX4 stable release (as of 1.14), and not used for EKF aiding even in the main branch. Instead, PX4 relies on a “hack” that uses ecef_position_velocity field in the Fix2 message type to transmit heading: https://github.com/PX4/PX4-Autopilot/blob/926e7878afc6ce804b0b4c097fbf94d405841f42/src/drivers/uavcan/sensors/gnss.cpp#L307C1-L327C1

Since we use two Here4 units for moving baseline with a PX4 autopilot, we had to add this to the GPS firmware to make it compatible with PX4.

You should consider adding this to your FW, as it is the last remaining hurdle for PX4 compatibility with moving baseline. Optionally, you could add a config parameter to enable/disable this behaviour, since the PX4 way of doing it is kind of a "hack".

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