Browse Source

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.
sbg
Julian Oes 6 years ago committed by Beat Küng
parent
commit
c3529baa5b
  1. 2
      Tools/jMAVSim
  2. 4
      Tools/jmavsim_run.sh

2
Tools/jMAVSim

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

4
Tools/jmavsim_run.sh

@ -49,6 +49,10 @@ else @@ -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…
Cancel
Save