tortuga DataLogging Library: battery, speed, time, average...

Dependents:   TORTUGA_BLE

Fork of DataLogging by aapje monkey

Committer:
ptuytsch
Date:
Mon Jul 18 13:18:07 2016 +0000
Revision:
6:9079496c6e25
Parent:
3:610ace66d7af
minor changes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ptuytsch 0:ec76b22829d5 1 #ifndef DATA_H
ptuytsch 0:ec76b22829d5 2 #define DATA_H
ptuytsch 0:ec76b22829d5 3
ptuytsch 0:ec76b22829d5 4 #include "mbed.h"
ptuytsch 0:ec76b22829d5 5
ptuytsch 0:ec76b22829d5 6 class Data{
ptuytsch 0:ec76b22829d5 7 //Ticker voor peroidieke metingen.
ptuytsch 0:ec76b22829d5 8 protected:
ptuytsch 2:f3c2bf5521e5 9 time_t StartTime;
ptuytsch 2:f3c2bf5521e5 10 float distance;
ptuytsch 2:f3c2bf5521e5 11 float lastDistance;
ptuytsch 3:610ace66d7af 12 uint8_t PPR;
ptuytsch 3:610ace66d7af 13 float periphery;
ptuytsch 3:610ace66d7af 14
ptuytsch 0:ec76b22829d5 15 public:
ptuytsch 3:610ace66d7af 16 Data(float startDistance = 0,uint32_t time = 0, uint8_t ppr = 1, float Periphery = 2.233168);
ptuytsch 2:f3c2bf5521e5 17 float getDistance(void);
ptuytsch 2:f3c2bf5521e5 18 uint32_t getTime(void);
ptuytsch 2:f3c2bf5521e5 19 float getAverage(void);
ptuytsch 1:6e25c2b5c20c 20 void pressed(void);
ptuytsch 2:f3c2bf5521e5 21 void interval(int count);
ptuytsch 0:ec76b22829d5 22 };
ptuytsch 0:ec76b22829d5 23
ptuytsch 0:ec76b22829d5 24 #endif