Build: VRBRAIN corrected order of MAG startup

This commit is contained in:
Emile Castelnuovo 2014-08-24 12:39:53 +02:00 committed by Randy Mackay
parent e995641e48
commit 4fa8f82c59
2 changed files with 30 additions and 30 deletions

View File

@ -94,21 +94,6 @@ else
# sh /etc/init.d/rc.error # sh /etc/init.d/rc.error
fi fi
echo "[APM] Starting HMC5883 Internal"
if hmc5883 -I start
then
echo "[APM] HMC5883 Internal started OK"
if hmc5883 -I calibrate
then
echo "[APM] HMC5883 Internal calibrate OK"
else
echo "[APM] HMC5883 Internal calibrate failed"
fi
else
echo "[APM] HMC5883 Internal start failed"
# sh /etc/init.d/rc.error
fi
echo "[APM] Starting HMC5883 External GPS" echo "[APM] Starting HMC5883 External GPS"
if hmc5883 -X start if hmc5883 -X start
then then
@ -124,6 +109,21 @@ else
# sh /etc/init.d/rc.error # sh /etc/init.d/rc.error
fi fi
echo "[APM] Starting HMC5883 Internal"
if hmc5883 -I start
then
echo "[APM] HMC5883 Internal started OK"
if hmc5883 -I calibrate
then
echo "[APM] HMC5883 Internal calibrate OK"
else
echo "[APM] HMC5883 Internal calibrate failed"
fi
else
echo "[APM] HMC5883 Internal start failed"
# sh /etc/init.d/rc.error
fi
echo "[APM] Starting HMC5983 External EXP" echo "[APM] Starting HMC5983 External EXP"
if hmc5983 -X start if hmc5983 -X start
then then

View File

@ -67,21 +67,6 @@ else
# sh /etc/init.d/rc.error # sh /etc/init.d/rc.error
fi fi
echo "[APMNS] Starting HMC5883 Internal"
if hmc5883 -I start
then
echo "[APMNS] HMC5883 Internal started OK"
if hmc5883 -I calibrate
then
echo "[APMNS] HMC5883 Internal calibrate OK"
else
echo "[APMNS] HMC5883 Internal calibrate failed"
fi
else
echo "[APMNS] HMC5883 Internal start failed"
# sh /etc/init.d/rc.error
fi
echo "[APMNS] Starting HMC5883 External GPS" echo "[APMNS] Starting HMC5883 External GPS"
if hmc5883 -X start if hmc5883 -X start
then then
@ -97,6 +82,21 @@ else
# sh /etc/init.d/rc.error # sh /etc/init.d/rc.error
fi fi
echo "[APMNS] Starting HMC5883 Internal"
if hmc5883 -I start
then
echo "[APMNS] HMC5883 Internal started OK"
if hmc5883 -I calibrate
then
echo "[APMNS] HMC5883 Internal calibrate OK"
else
echo "[APMNS] HMC5883 Internal calibrate failed"
fi
else
echo "[APMNS] HMC5883 Internal start failed"
# sh /etc/init.d/rc.error
fi
echo "[APMNS] Starting HMC5983 External EXP" echo "[APMNS] Starting HMC5983 External EXP"
if hmc5983 -X start if hmc5983 -X start
then then