HomeGuides
Log In
Guides

How to setup Ardupilot VTOL SITL with UgCS

System requirements:
For Windows users:
Set up Ubuntu 16.04 on a virtual machine (recommended VM VirtualBox).
Recommended to have a workstation with at least 8GB of RAM.

For UgCS users on Ubuntu 16.04:
Set up the SITL environment on your workstation running UgCS
Recommended to have a workstation with at least 8GB of RAM.
Ardupilot SITL setup instructions on Ubuntu 16.04:
Instructions

For UgCS users running Ubuntu with SITL on a virtual machine, it is necessary to update the IP address of your virtual machine in the following file and rows:
/home/sitl/ardupilot/Tools/autotest/sim_vehicle.py
setup ports for this instance
mavlink_port = "tcp: 127.0.0.1:" + str(5760 + 10 cmd_opts.instance)
simout_port = "127.0.0.1:" + str(5501 + 10
cmd_opts.instance)
Change localhost 127.0.0.1 to your virtual machine IP address.

On your PC or macOS workstation modify C:\Program Files (x86)\UgCS\bin\vsm-ardupilot.conf
Uncomment lines:
connection.tcp_out.1.port = 5762
connection.tcp_out.1.address = 127.0.0.1
Change the IP address on line connection.tcp_out.1.address to match IP address of your virtual machine, you have specified in the sim_vehicle.py file
When the IP address is set, on Ubuntu virtual machine navigate to:
ardupilot/Arduplane
Run command:
sim_vehicle.py -j4 -f quadplane
STIL will start and APM-1 vehicle using 3DR VTOL will appear in UgCS.