sih remove mag and use standalone sensor_mag_sim

This commit is contained in:
Daniel Agar
2022-09-09 18:00:50 -04:00
parent 99a20646e2
commit c5336abba2
38 changed files with 112 additions and 168 deletions
@@ -6,8 +6,12 @@ param set-default IMU_INTEG_RATE 250
if [ "$PX4_SIMULATOR" = "sihsim" ] || [ "$(param show -q SYS_AUTOSTART)" -eq "0" ]; then
if ! simulator_sih start; then
echo "ERROR [init] simulator_sih failed to start"
if simulator_sih start; then
sensor_mag_sim start
else
echo "ERROR [init] simulator_sih failed to start"
exit 1
fi
@@ -46,7 +50,7 @@ elif [ "$PX4_SIMULATOR" = "ignition" ]; then
sensor_gps_sim start
sensor_mag_sim start
else
echo "ERROR [init] ign gazebo failed to start"
echo "ERROR [init] ign gazebo failed to start"
exit 1
fi
else
@@ -61,7 +65,7 @@ elif [ "$PX4_SIMULATOR" = "ignition" ]; then
sensor_gps_sim start
sensor_mag_sim start
else
echo "ERROR [init] ign gazebo failed to start"
echo "ERROR [init] ign gazebo failed to start"
exit 1
fi
+1
View File
@@ -344,6 +344,7 @@ else
if param compare SYS_HITL 2
then
simulator_sih start
sensor_mag_sim start
fi
else