From f6fada2d49c888715ff2ea367c6daa8446c500f3 Mon Sep 17 00:00:00 2001 From: LukeMike Date: Tue, 19 Aug 2014 08:29:32 +0200 Subject: [PATCH] VRBRAIN: added startup of internal mag's driver for VR Brain Standard 5 --- mk/VRBRAIN/ROMFS_VRBRAIN51_APM/init.d/rc.APM | 15 +++++++++++++++ mk/VRBRAIN/ROMFS_VRBRAIN51_APM/init.d/rc.APMNS | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/mk/VRBRAIN/ROMFS_VRBRAIN51_APM/init.d/rc.APM b/mk/VRBRAIN/ROMFS_VRBRAIN51_APM/init.d/rc.APM index a3d7f5cfe6..06bb238879 100644 --- a/mk/VRBRAIN/ROMFS_VRBRAIN51_APM/init.d/rc.APM +++ b/mk/VRBRAIN/ROMFS_VRBRAIN51_APM/init.d/rc.APM @@ -94,6 +94,21 @@ else # sh /etc/init.d/rc.error 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" if hmc5883 -X start then diff --git a/mk/VRBRAIN/ROMFS_VRBRAIN51_APM/init.d/rc.APMNS b/mk/VRBRAIN/ROMFS_VRBRAIN51_APM/init.d/rc.APMNS index 141877a08b..9a532444aa 100644 --- a/mk/VRBRAIN/ROMFS_VRBRAIN51_APM/init.d/rc.APMNS +++ b/mk/VRBRAIN/ROMFS_VRBRAIN51_APM/init.d/rc.APMNS @@ -67,6 +67,21 @@ else # sh /etc/init.d/rc.error 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" if hmc5883 -X start then