Implemented first Hangar-Service

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

Revision:
31:d65576185bdf
Parent:
15:4488660e1a3b
Child:
32:d37447aec6b4
--- a/Accelerometer.cpp	Thu Apr 23 12:13:28 2015 +0000
+++ b/Accelerometer.cpp	Tue Apr 28 09:08:03 2015 +0000
@@ -19,7 +19,7 @@
     write_reg(0x14, 0xB6); // reset
     wait_ms(2); // page 11 says only 1.3ms, nothing for startup time, so assuming 2ms
     write_reg(0x11, 0); // set power normal mode
-    write_reg(0x10, 15); // set bandwidth = 250 Hz
+    write_reg(0x10, 12); // set bandwidth = 125 Hz (earlier comment was incorrect)
     return read_reg(0x00) == 0xfa; // verify chip ID
 }