1
0
Fork 0
Reads data from a Beaglebone Blue magnetometer, formats it as an NMEA-0183 HDT message, and sends it via UDP
Find a file
2025-09-05 13:58:10 +00:00
.gitignore gitignore 2023-03-10 13:16:02 +00:00
heading_nmea_udp_sender.c Update link 2025-09-05 13:58:10 +00:00
heading_nmea_udp_sender.service First commit 2023-03-08 20:36:21 +00:00
LICENSE Initial commit 2023-03-08 20:31:32 +00:00
Makefile Fix a bug on first install because the service doesn't exist to stop it 2023-03-10 15:25:16 +00:00
README.md gpsd compatibility update 2023-03-12 09:57:59 +00:00

Beaglebone Blue Heading NMEA UDP Sender

Reads data from a Beaglebone Blue magnetometer, formats it as an NMEA-0183 HDT message, and sends it via UDP. Maybe useful for robotics software that expects that format of heading data. This can also be ingested into gpsd, by e.g. adding udp://0.0.0.0:2021 to its list of sources.

Note that the talker ID used is "GP", so the message will be "GPHDT". This is for compatibility with gpsd, which will ignore other talker IDs. If you're not using this with gpsd, and have a thing for standards compliance, feel free to change it to e.g. "HE".

Apologies for code quality, it's been a while since I last wrote any C.

make does exactly what you expect. make install will put it in /usr/local/bin and create a systemd service for it to run in the background.

Based on the MPU example from the Beaglebone Robot Control Library.