this algorith is used for averaging compass values
Yamartino.h
- Committer:
- fin4478
- Date:
- 2014-08-12
- Revision:
- 0:726c69fad7d8
File content as of revision 0:726c69fad7d8:
#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