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