How to setup Ardupilot VTOL SITL with UgCS

From UgCS
Jump to: navigation, search

Main Page UgCS How to setup Ardupilot VTOL SITL with UgCS

Download this page as a PDF file


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

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

For UgCS users running Ubuntu with SITL on virtual machine, it is necessary to update IP address of your virtual machine in 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 IP address on line connection.tcp_out.1.address to match IP address of your virtual machine, you have specified in sim_vehicle.py file
When 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.