Andruav Simulation using SITL

You do not need a real vehicle to test Andruav. Use SITL before you use Andruav on a real drone, boat or rover. SITL can simulate ArduCopter, ArduPlane, ArduRover (rovers and boats) and ArduSub.

For a 3D view, you can also use Webots SITL.


Connect Andruav to SITL

Andruav connects to SITL over UDP. The phone and the SITL computer must be on the same network.

On the SITL computer

Start SITL and send MAVLink to the IP of the phone:

~/ardupilot/Tools/autotest/sim_vehicle.py -j4 -v ArduCopter -M \
    --out=udpout:127.0.0.1:14550 \
    --out=udpout:192.168.1.100:14550

In this example:

  • 127.0.0.1:14550 is for a Mission Planner or QGroundControl on the same computer. It does not go through Andruav.

  • 192.168.1.100:14550 is the phone. Change it to the IP of your phone.

For a rover, use -v Rover. For a boat, use -v Rover --frame=motorboat.

On the phone

  1. On the home screen, tap the FCB tile.

  2. Tap UDP Broadcast.

  3. Make sure that Port is the same port as in the SITL command (14550). The sheet shows the Local IP of the phone. Use this IP in the SITL command.

  4. Tap CONNECT.

FCB sheet with UDP Broadcast selected, the local IP of the phone and port 14550

Tip

Give your phone a static IP on your router. Then you do not change the SITL command each time.


Test the Comm-Loss Failsafe in SITL

Use SITL to test the comm-loss failsafe before a real run:

  1. Turn on Settings > DroneEngage native > Comm-loss flight failsafe.

  2. Select the Failsafe flight mode, for example rtl.

  3. In SITL, arm the vehicle and take off.

  4. Stop the server link of the phone.

  5. Make sure that the vehicle changes to the failsafe mode.

Note

The SITL link and the server link must be different. For example, use Wi-Fi for SITL and mobile data for the server. Then turn off only the mobile data in step 4.


Testing GPS Injection in SITL

GPS Injection is coming and is not active in this version. When it is available, see Testing GPS Injection with SITL for the SITL parameters.