Browse Source

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

master
Peter Barker 3 years ago committed by Peter Barker
parent
commit
d7d7bb6e77
  1. 5
      libraries/SITL/examples/on-hardware/sitl-on-hw.sh

5
libraries/SITL/examples/on-hardware/sitl-on-hw.sh

@ -7,7 +7,8 @@ BOARD=NucleoH743 @@ -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 @@ -47,6 +48,8 @@ if [ -z "${DEFAULTS_PATH}" ]; then
fi
fi
pushd $ROOTDIR
./waf configure \
--board=$BOARD \
--extra-hwdef="$EXTRA_HWDEF" \

Loading…
Cancel
Save