mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
jMAVSim: update submodule for new -f argument
This adds the argument -f for a speed factor to speed up the simulation.
This commit is contained in:
+1
-1
Submodule Tools/jMAVSim updated: cb2d13087a...26bf9e6c74
@@ -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:qr:i:" opt; do
|
while getopts ":b:d:p:qr:f:i:" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
b)
|
b)
|
||||||
baudrate=$OPTARG
|
baudrate=$OPTARG
|
||||||
@@ -30,6 +30,9 @@ while getopts ":b:d:p:qr:i:" opt; do
|
|||||||
r)
|
r)
|
||||||
extra_args="$extra_args -r $OPTARG"
|
extra_args="$extra_args -r $OPTARG"
|
||||||
;;
|
;;
|
||||||
|
f)
|
||||||
|
extra_args="$extra_args -f $OPTARG"
|
||||||
|
;;
|
||||||
\?)
|
\?)
|
||||||
echo "Invalid option: -$OPTARG" >&2
|
echo "Invalid option: -$OPTARG" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
+1
-1
@@ -69,7 +69,7 @@ SIM_PID=0
|
|||||||
if [ "$program" == "jmavsim" ] && [ ! -n "$no_sim" ]
|
if [ "$program" == "jmavsim" ] && [ ! -n "$no_sim" ]
|
||||||
then
|
then
|
||||||
# Start Java simulator
|
# Start Java simulator
|
||||||
"$src_path"/Tools/jmavsim_run.sh -r 500 &
|
"$src_path"/Tools/jmavsim_run.sh -r 500 -f 1 &
|
||||||
SIM_PID=`echo $!`
|
SIM_PID=`echo $!`
|
||||||
elif [ "$program" == "gazebo" ] && [ ! -n "$no_sim" ]
|
elif [ "$program" == "gazebo" ] && [ ! -n "$no_sim" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user