-
Notifications
You must be signed in to change notification settings - Fork 32
Setting up your simulator
Miles Cobb edited this page May 24, 2019
·
29 revisions
Setting up a Vagrant simulator
- Git
Leave line endings untouchedgit config --global core.autocrlf false
- Install VirtualBox for your OS
- Install Vagrant for your OS
- Clone the autopilot repository
git clone https://github.com/ArduPilot/ardupilot.git
- Within the ardupilot directory add the following lines to your vagrantfile before the final "end"
config.vm.network "forwarded_port", guest: 5760, host: 5760, protocol: "tcp"
config.vm.network "forwarded_port", guest: 5761, host: 5761, protocol: "tcp"
config.vm.network "forwarded_port", guest: 5762, host: 5762, protocol: "tcp"
config.vm.network "forwarded_port", guest: 5763, host: 5763, protocol: "tcp" - Launch vagrant
vagrant up
- Initialize submodules
vagrant ssh
cd /vagrant
git submodule update --init --recursive
exit
vagrant ssh
-
cd
into ArduPlane sim_vehicle.py -l 35.328423,-120.752505,580,0 -j4 -f quadplane --console --map
Setting up a Dronekit-SITL simulator
- Install dronekit-sitl
pip3 install dronekit-sitl
- Clone the ardupilot repository
- Within you copy of ardupilot
- Set vehicle to SITL
./waf configure --board sitl
- Compile desired vehicle
./waf copter
./build/sitl/bin/arducopter -M QuadCopter
connect to your sim over tcp port 5760
disable preflight checks using QGroundControl Vehicle Setup => safety (You may need to set you airframe as well)
- Project Overview
- Dependency List
- GCS JSON Message Formatting
- Dronekit mission_basic.py
- Continuous Integration with Travis
- Engineering Requirements
- Test Hierarchy
- Style Guide
- Glossary