Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

Ardupilot is a firmware that is commonly run on consumer off the shelf (COTS) flight controllers that WARG uses. These devices use MAVLink as their primary telemetry communication protocol.

Software simulation of hardware components allows testing of software components without requiring hardware to be physically present. This is known as software in the loop (SITL).

The Ardupilot SITL Simulator lets WARG test software using MAVLink without requiring a physical drone.

Quick links

https://ardupilot.org/dev/docs/sitl-simulator-software-in-the-loop.html

http://mavlink.io/en/guide/wireshark.html

Mission Planner

Download and install Mission Planner: https://ardupilot.org/planner/docs/mission-planner-installation.html

  • Windows only, not tested on Linux

Follow the steps here: https://ardupilot.org/planner/docs/mission-planner-simulation.html#setup-and-use

  • The Simulation tab is at the top of the screen

  • Select Multirotor and Stable , unless you specifically need another vehicle

Mission Planner automcatically downloads and runs the SITL files, and then conneccts to the simulated vehicle.

Mission Planner is ready to be used as though it is connected to a real drone!

MAVLink Forwarding

Mission Planner can be used as a bridge between the drone and another application:

  1. Ctrl+f

  2. Click on Mavlink

    1. If you are running another application, proceed to step 3

    2. If you are observing MAVLink telemetry messages only, proceed to step 4

  3. Another application:

    1. In the upper dropdown, select TCP Host - 14550

    2. Check the Write access checkbox

    3. Click Connect

    4. Enter port 14550 , unless you are specifically using another port

    5. Click OK

    6. The application is ready to receive telemetry and send commands

  4. Observation only:

    1. In the upper dropdown, select UDP Client

    2. Leave the Write access checkbox unchecked

    3. Click Connect

    4. Enter 127.0.0.1 , unless you are specifically using another IP

    5. Enter port 14550 , unless you are specifically using another port

    6. Click OK

    7. Mission Planner is now broadcasting telemetry

Ardupilot Only

The Ardupilot website has extensive documentation on setting up the SITL found here (https://ardupilot.org/dev/docs/sitl-simulator-software-in-the-loop.html). You may be able to download the SITL binary without compiling yourself by downloading the firmware from here: https://firmware.ardupilot.org/Copter/latest/. And use https://github.com/ArduPilot/ardupilot/blob/master/Tools/autotest/sim_vehicle.py to run it. (although this is untested).

DroneKit

DroneKit also has a SITL simulator.

TODO: Links

  • No labels