tortuga DataLogging Library: battery, speed, time, average...
Fork of DataLogging by
Data.h
- Committer:
- ptuytsch
- Date:
- 2016-04-30
- Revision:
- 2:f3c2bf5521e5
- Parent:
- 1:6e25c2b5c20c
- Child:
- 3:610ace66d7af
File content as of revision 2:f3c2bf5521e5:
#ifndef DATA_H #define DATA_H #include "mbed.h" class Data{ //Ticker voor peroidieke metingen. protected: //int count; time_t StartTime; float distance; float lastDistance; int lastCount; public: Data(float startDistance = 0,uint32_t time = 0); float getDistance(void); uint32_t getTime(void); float getSpeed(void); float getAverage(void); int getLastCount(void); void pressed(void); void interval(int count); }; #endif