#!/bin/sh
set -eu

# Allow a separately started ground station when MAVProxy is unavailable.
if ! command -v mavproxy.py >/dev/null 2>&1; then
    set -- --no-mavproxy "$@"
fi

exec /usr/share/ardupilot/Tools/autotest/sim_vehicle.py --no-rebuild --vehicle ArduCopter "$@"
