jMAVSim: disable GUI using HEADLESS=1

@katzfey added the option to run jMAVSim without GUI. Now we just need
to read the HEADLESS env variable to use it.
This commit is contained in:
Julian Oes 2019-08-22 17:29:46 +02:00 committed by Beat Küng
parent 3c0f4f9ace
commit c3529baa5b
2 changed files with 5 additions and 1 deletions

@ -1 +1 @@
Subproject commit def7501bc0536b8d1050f65d09c7dfbebcc0ce61
Subproject commit 3bd51e67e022ce59644d33ebdf6570c2ea88ddb6

View File

@ -49,6 +49,10 @@ else
device="-serial $device $baudrate"
fi
if [ "$HEADLESS" = "1" ]; then
extra_args="$extr_args -no-gui"
fi
# jMAVSim crashes with Java 9 on macOS, therefore we need to use Java 8
if [ "$(uname)" == "Darwin" ]; then
bold=$(tput bold)