Simplify getting sim PID

Follow up of https://github.com/PX4/Firmware/pull/15206#pullrequestreview-436356707
This commit is contained in:
JaeyoungLim
2020-06-24 09:12:44 +02:00
committed by Beat Küng
parent 6dd0932158
commit ae4ed87a31

View File

@@ -104,7 +104,7 @@ elif [ "$program" == "gazebo" ] && [ ! -n "$no_sim" ]; then
gzserver "$PX4_SITL_WORLD" & gzserver "$PX4_SITL_WORLD" &
fi fi
fi fi
SIM_PID=`echo $!` SIM_PID=$!
gz model --spawn-file="${src_path}/Tools/sitl_gazebo/models/${model}/${model}.sdf" --model-name=${model} -x 1.01 -y 0.98 -z 0.83 gz model --spawn-file="${src_path}/Tools/sitl_gazebo/models/${model}/${model}.sdf" --model-name=${model} -x 1.01 -y 0.98 -z 0.83