An eCompass library only for use on FPU enabled platforms like the K64F

Dependents:   K64F_eCompass_LCD rtos_compass K64F_eCompass GPS_6Axis_DataLogger_SD_UDP ... more

Fork of eCompass_Lib by Jim Carver

Revision:
6:37bc03c3b1f9
Parent:
3:98d426530167
diff -r aeaceeb90d58 -r 37bc03c3b1f9 eCompass_Lib.h
--- a/eCompass_Lib.h	Mon Apr 14 17:13:59 2014 +0000
+++ b/eCompass_Lib.h	Mon May 05 17:38:37 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" {
@@ -44,6 +45,8 @@
 #define FCOUNTSPERUT 10.0F              // sensor specific: MAG3110 provide 10 counts / uT 
 #define FCOUNTSPERG 4096.0F             // sensor specific: MMA8451 provide 4096 counts / g in 2g mode
 
+
+ 
 typedef struct  {
     // Always 1
        uint16              packet_id;
@@ -75,7 +78,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);