Skip to content
Snippets Groups Projects
Commit 958e5e31 authored by Emile Castelnuovo's avatar Emile Castelnuovo Committed by Randy Mackay
Browse files

Build: VRBRAIN corrected order of MAG startup for 4.5 board

parent 0e118eb3
No related branches found
No related tags found
No related merge requests found
......@@ -76,20 +76,7 @@ else
sh /etc/init.d/rc.error
fi
echo "[APM] Starting HMC5883 Internal"
if hmc5883 -I start
then
echo "[APM] HMC5883 onboard started OK"
if hmc5883 calibrate
then
echo "[APM] HMC5883 onboard calibrate OK"
else
echo "[APM] HMC5883 onboard calibrate failed"
fi
else
echo "[APM] HMC5883 onboard start failed"
# sh /etc/init.d/rc.error
fi
echo "[APM] Starting HMC5883 External GPS"
if hmc5883 -X start
......@@ -106,6 +93,20 @@ else
# sh /etc/init.d/rc.error
fi
echo "[APM] Starting HMC5883 Internal"
if hmc5883 -I start
then
echo "[APM] HMC5883 onboard started OK"
if hmc5883 -I calibrate
then
echo "[APM] HMC5883 onboard calibrate OK"
else
echo "[APM] HMC5883 onboard calibrate failed"
fi
else
echo "[APM] HMC5883 onboard start failed"
# sh /etc/init.d/rc.error
fi
echo "[APM] Starting MPU6000 Internal"
if mpu6000 -I start
then
......
......@@ -49,20 +49,6 @@ else
sh /etc/init.d/rc.error
fi
echo "[APMNS] Starting HMC5883 Internal"
if hmc5883 -I start
then
echo "[APMNS] HMC5883 onboard started OK"
if hmc5883 calibrate
then
echo "[APMNS] HMC5883 onboard calibrate OK"
else
echo "[APMNS] HMC5883 onboard calibrate failed"
fi
else
echo "[APMNS] HMC5883 onboard start failed"
# sh /etc/init.d/rc.error
fi
echo "[APMNS] Starting HMC5883 External GPS"
if hmc5883 -X start
......@@ -79,6 +65,20 @@ else
# sh /etc/init.d/rc.error
fi
echo "[APMNS] Starting HMC5883 Internal"
if hmc5883 -I start
then
echo "[APMNS] HMC5883 onboard started OK"
if hmc5883 -I calibrate
then
echo "[APMNS] HMC5883 onboard calibrate OK"
else
echo "[APMNS] HMC5883 onboard calibrate failed"
fi
else
echo "[APMNS] HMC5883 onboard start failed"
# sh /etc/init.d/rc.error
fi
echo "[APMNS] Starting MPU6000 Internal"
if mpu6000 -I start
then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment