A Mavlink wrapper dedicated to the most common messages that are exchanged between an air vehicle and a ground station.
* Mavlink (https:https://github.com/mavlink/mavlink)
The following requirements are only needed for running the tests:
* MavProxy (https://github.com/ArduPilot/MAVProxy)
* Ardupilot (https://github.com/ArduPilot/ardupilot)
-
Make sure you have all dependencies properly installed in your system.
-
Check if $PKG_CONFIG_PATH points to the location of the mavlink pkg-config configuration file. If you have installed Mavlink using its cmake defaults, $PKG_CONFIG_PATH should be set with the following command:
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig
To check if pkg-config is able to find mavlink, the following command should yield the installed version of mavlink:
pkg-config --modversion mavlink
-
Create a build folder and compile using CMAKE as follows:
mkdir build cd build cmake .. make
-
Open a second terminal and run Ardupilot:
cd ${ARDUPILOTDIR}/build/sitl/bin ./arducopter-quad --model x
-
In a third terminal, run Mavproxy:
mavproxy.py --master tcp:127.0.0.1:5760 --out udp:127.0.0.1:14557 --streamrate -1
-
Run tests:
build/tests/tests
A series of tests will be executed and their results (OK/FAIL) will be displayed on the screen.