mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
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:
Submodule Tools/jMAVSim updated: def7501bc0...3bd51e67e0
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user