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

Files at this revision

API Documentation at this revision

Comitter:
JimCarver
Date:
Fri May 16 18:18:42 2014 +0000
Parent:
5:1b8ec4e7687b
Parent:
4:45d9f1e8277c
Commit message:
Implements new virtual MotionSensor class

Changed in this revision

eCompass_Lib.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 1b8ec4e7687b -r a161cb3bd061 eCompass_Lib.cpp
--- a/eCompass_Lib.cpp	Fri May 16 18:13:59 2014 +0000
+++ b/eCompass_Lib.cpp	Fri May 16 18:18:42 2014 +0000
@@ -16,6 +16,9 @@
 {
 init_eCompass();
 cdebug = 0;
+compass_type = NED_COMPASS; // default type is NED
+tcount = 0;
+seconds = 0;
 }