Improved eCompass with support for different sensor options and a new C++ wrapper

Dependents:   KL46_eCompass KL46_eCompass_TiltCompensed_Acel-Mag Ragnarok_2ejes compass_acc ... more

Fork of Wi-Go_eCompass_Lib_V3 by Jim Carver

Revision:
5:1b8ec4e7687b
Parent:
3:98d426530167
--- a/eCompass_Lib.h	Sun Apr 13 21:23:57 2014 +0000
+++ b/eCompass_Lib.h	Fri May 16 18:13:59 2014 +0000
@@ -13,7 +13,8 @@
 #define ECOMPASS_H__
 
 #include "mbed.h"
-//#include "Wi-Go_eCompass_Lib_V3.ar"
+#include "MotionSensor.h"
+
 
 #ifdef  __cplusplus
 extern "C" {
@@ -75,7 +76,7 @@
 {
 public:
     eCompass();
-    void run(int16_t * acc, int16_t * mag);
+    void run(MotionSensorDataCounts &acc_raw, MotionSensorDataCounts &mag_raw);
     void calibrate(void);
     void init(void);