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:
Sun Apr 13 22:15:34 2014 +0000
Parent:
3:98d426530167
Child:
6:a161cb3bd061
Commit message:
Improved initalization, default compass type is NED, can be overridden in user code to compass_type=ANDROID_COMPASS or compass_type=WINDOWS_COMPASS

Changed in this revision

eCompass_Lib.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/eCompass_Lib.cpp	Sun Apr 13 21:23:57 2014 +0000
+++ b/eCompass_Lib.cpp	Sun Apr 13 22:15:34 2014 +0000
@@ -16,6 +16,9 @@
 {
 init_eCompass();
 cdebug = 0;
+compass_type = NED_COMPASS; // default type is NED
+tcount = 0;
+seconds = 0;
 }