January 2019
Beginner to intermediate
776 pages
19h 58m
English
In this recipe, we will simulate a simple drone with dronekit-sitl. The simulator API is compatible with the Dronekit API that actually controls the drones. Hence, you may develop once and run in simulation and production very easily, as with our previous recipes on Mininet emulation.
First, run the dronekit-sitl in a Terminal before running 22_4_dronekit_sitl_simulation.py:
$ dronekit-sitl copter-3.3 --home=-45.12,149.22,544.55,343.55 os: linux, apm: copter, release: 3.3 SITL already Downloaded and Extracted. Ready to boot. Execute: /home/pradeeban/.dronekit/sitl/copter-3.3/apm --home=-45.12,149.22,544.55,343.55 --model=quad Started model quad at -45.12,149.22,544.55,343.55 at speed 1.0 bind port 5760 for 0 Starting sketch ...
Read now
Unlock full access