Browse Source

Build: VRBRAIN corrected order of MAG startup for 4.5 board

master
Emile Castelnuovo 11 years ago committed by Randy Mackay
parent
commit
958e5e31fc
  1. 29
      mk/VRBRAIN/ROMFS_VRBRAIN45_APM/init.d/rc.APM
  2. 28
      mk/VRBRAIN/ROMFS_VRBRAIN45_APM/init.d/rc.APMNS

29
mk/VRBRAIN/ROMFS_VRBRAIN45_APM/init.d/rc.APM

@ -76,20 +76,7 @@ else @@ -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 @@ -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

28
mk/VRBRAIN/ROMFS_VRBRAIN45_APM/init.d/rc.APMNS

@ -49,20 +49,6 @@ else @@ -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 @@ -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

Loading…
Cancel
Save