Example that connects to a GPS and sends RTCM RTK data via MAVLink using MAVSDK.
- Install MAVSDK on your system.
- Install
cmake
and a compiler such asGCC
. - Get the git submodule:
git submodule update --init --recursive
.
cmake -Bbuild -H.
cmake --build build
Connect GPS over serial, find the serial device, as well as baudrate. Also find the MAVSDK connection URL to connect to the vehicle using MAVLink.
usage: build/rtk-sender-example <serial device> <baudrate> <mavlink connection>
e.g.: build/rtk-sender-example /dev/ttyUSB0 38400 udp://:14550
Note: use baudrate 0 to determine baudrate automatically