forked from Archive/PX4-Autopilot
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:
parent
3c0f4f9ace
commit
c3529baa5b
|
@ -1 +1 @@
|
|||
Subproject commit def7501bc0536b8d1050f65d09c7dfbebcc0ce61
|
||||
Subproject commit 3bd51e67e022ce59644d33ebdf6570c2ea88ddb6
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue