SITL: allow sitl-on-hw.sh to be invoked from any directory

This commit is contained in:
Peter Barker 2022-05-24 11:24:20 +10:00 committed by Peter Barker
parent adac463154
commit d7d7bb6e77

View File

@ -7,7 +7,8 @@ BOARD=NucleoH743
BOARD=MatekH743
#BOARD=F35Lightning
THISDIR=$(dirname $0)
THISDIR=$(realpath $(dirname $0))
ROOTDIR=$(realpath "$THISDIR/../../../..")
VEHICLE="copter"
DEFAULTS_PATH=""
@ -47,6 +48,8 @@ if [ -z "${DEFAULTS_PATH}" ]; then
fi
fi
pushd $ROOTDIR
./waf configure \
--board=$BOARD \
--extra-hwdef="$EXTRA_HWDEF" \