Skip to content

Instantly share code, notes, and snippets.

@tstellanova
Last active July 10, 2017 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tstellanova/6bbe9f5fd5d72a4aabed408fe9c40b61 to your computer and use it in GitHub Desktop.
Save tstellanova/6bbe9f5fd5d72a4aabed408fe9c40b61 to your computer and use it in GitHub Desktop.
RTK RTCM Injection Using RPi3 or NUC

You can use a Raspberry Pi 3 or NUC to forward RTCM messages from a ublox base station to a Pixhawk via mavlink, using a combination of mavproxy and socat.

  • Setup RPi3 or NUC with Mavproxy
  • Configure Mavproxy to start the DGPS module
  • Plugin RTK base station to RPi3 usb port (should appear on /dev/ttyACM0 )
  • Conifgure /dev/ttyACM0 to pass raw binary data: stty -F /dev/ttyACM0 57600 raw -echo -echoe -echok -iexten -echoctl -echoke
  • Forward RTCM via UDP using socat: socat UDP-DATAGRAM:127.0.0.1:13320 file:/dev/ttyACM0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment