mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
SITL: allow sitl-on-hw.sh to be invoked from any directory
This commit is contained in:
parent
adac463154
commit
d7d7bb6e77
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user