mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 06:13:33 +08:00
* sim: refactor px4-rc.simulator into sim specific startup scripts. Fix gz sim for standalone mode. * shellcheck disable=SC2154
15 lines
301 B
Bash
15 lines
301 B
Bash
#!/bin/sh
|
|
# shellcheck disable=SC2154
|
|
|
|
echo "INFO [init] jMAVSim simulator"
|
|
|
|
if jps | grep -i jmavsim; then
|
|
kill "$(jps | grep -i jmavsim | awk '{print $1}')" || true
|
|
sleep 1
|
|
fi
|
|
|
|
param set IMU_INTEG_RATE 250
|
|
./jmavsim_run.sh -l -r 250 &
|
|
|
|
simulator_mavlink start -h localhost $((4560+px4_instance))
|