mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-14 08:47:35 +08:00
jmavsim_run.sh: add -r option to set the update rate
currently jmavsim uses a default rate of 500 Hz which is too much.
This commit is contained in:
@@ -7,7 +7,7 @@ udp_port=14560
|
||||
extra_args=
|
||||
baudrate=921600
|
||||
device=
|
||||
while getopts ":b:d:p:q" opt; do
|
||||
while getopts ":b:d:p:qr:" opt; do
|
||||
case $opt in
|
||||
b)
|
||||
baudrate=$OPTARG
|
||||
@@ -21,6 +21,9 @@ while getopts ":b:d:p:q" opt; do
|
||||
q)
|
||||
extra_args="$extra_args -qgc"
|
||||
;;
|
||||
r)
|
||||
extra_args="$extra_args -r $OPTARG"
|
||||
;;
|
||||
\?)
|
||||
echo "Invalid option: -$OPTARG" >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user