-
Notifications
You must be signed in to change notification settings - Fork 32
Setting up your simulator
It is easy to set up a simulation with DroneKit by using DroneKit's simulator, DroneKit-SITL. However, this simulator is insufficient because it runs on ArduCopter 3.3, which is very outdated. As a result, DroneKit-SITL does not support GPS denied functionality, which is an effort that our team specializes in. It is therefore necessary to set up a simulator that runs on the master branch of ArduCopter, which is 3.7.
Method 1: Setting up Ardupilot simulator
git clone https://github.com/ardupilot/ardupilot.git
Follow these instructions
, but instead of selecting all the dependencies for cygwin, you may run the installer again (within cygwin from your VTOL directory) with
./setup-x86_64 -P "awk 'NR==1{printf $1}{printf ",%s", $1}' simulator/packagelist"
run sh setup.sh
- Set vehicle to SITL
./waf configure --board sitl
- Compile desired vehicle
./waf copter
.simulator/arducopter -M Quad
(mac)
./build/sitl/bin/arducopter -M Quad (pc)
The vehicle can be connected to over TCP at port 5760.
- Open QGroundControl. Go to Comm Links and add a TCP connection to 127.0.0.1, port 5760.
- QGroundControl will now connect to your simulated vehicle. In the vehicle settings (tab with cog wheel icon)
- Go to Safety and make sure none of the arming checks are checked.
- Now the simulated vehicle is ready to fly with DroneKit. Execute whichever python script you need. The connection string that your script uses should be "tcp:127.0.0.1:5763" if you still have QGroundControl connected to the vehicle, otherwise "tcp:127.0.0.1:5760."
- Project Overview
- Dependency List
- GCS JSON Message Formatting
- Dronekit mission_basic.py
- Continuous Integration with Travis
- Engineering Requirements
- Test Hierarchy
- Style Guide
- Glossary