this algorith is used for averaging compass values

Revision:
0:726c69fad7d8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Yamartino.h	Tue Aug 12 11:52:35 2014 +0000
@@ -0,0 +1,24 @@
+#ifndef YAMARTINO_H
+#define YAMARTINO_H
+#include "mbed.h"
+
+//Yamartino algorithm is used for averaging compass values
+class Yamartino
+{
+public:
+
+int historyLength;
+//float* history; // keep our history values
+float* historyX;
+float* historyY;
+
+Yamartino();
+float calculateYamartinoAverage();
+float myAtan2(float y, float x);
+void addItemsToHistoryBuffers(float input);
+void addToHistory(float* buffer, float input);
+
+};
+
+
+#endif
\ No newline at end of file