Creating a CoxBox with the mbed

Dependencies:   mbed C12832 SMARTGPU2

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HallEffect.h Source File

HallEffect.h

00001 #ifndef __HallEffect__
00002 #define __HallEffect__
00003 
00004 #include "mbed.h"
00005 
00006 #define DATA_STROKE_COUNT 6
00007 
00008 class HallEffect{
00009 private:
00010     int strokeCount;
00011     double timeBetweenStrokes[DATA_STROKE_COUNT];
00012     short timeIndex;
00013     Timer timer;
00014     
00015 public:
00016     HallEffect();
00017     int getSPM();
00018     int getCount();
00019     void recordStroke();
00020     void resetCount();
00021 };
00022 
00023 #endif /* defined(__HallEffect__) */