mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
jmavsim_run.sh: add -o flag for SIH display only
This commit is contained in:
@@ -10,7 +10,7 @@ extra_args=
|
|||||||
baudrate=921600
|
baudrate=921600
|
||||||
device=
|
device=
|
||||||
ip="127.0.0.1"
|
ip="127.0.0.1"
|
||||||
while getopts ":b:d:p:qsr:f:i:l" opt; do
|
while getopts ":b:d:p:qsr:f:i:lo" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
b)
|
b)
|
||||||
baudrate=$OPTARG
|
baudrate=$OPTARG
|
||||||
@@ -36,6 +36,9 @@ while getopts ":b:d:p:qsr:f:i:l" opt; do
|
|||||||
l)
|
l)
|
||||||
extra_args="$extra_args -lockstep"
|
extra_args="$extra_args -lockstep"
|
||||||
;;
|
;;
|
||||||
|
o)
|
||||||
|
extra_args="$extra_args -disponly"
|
||||||
|
;;
|
||||||
\?)
|
\?)
|
||||||
echo "Invalid option: -$OPTARG" >&2
|
echo "Invalid option: -$OPTARG" >&2
|
||||||
exit 1
|
exit 1
|
||||||
@@ -75,4 +78,3 @@ if [ $ret -ne 0 -a $ret -ne 130 ]; then # 130 is Ctrl-C
|
|||||||
# understood. Try starting without it
|
# understood. Try starting without it
|
||||||
java -Djava.ext.dirs= -Djavax.accessibility.assistive_technologies=" " -jar jmavsim_run.jar $device $extra_args
|
java -Djava.ext.dirs= -Djavax.accessibility.assistive_technologies=" " -jar jmavsim_run.jar $device $extra_args
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user