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

Dependents:   TORTUGA_BLE

Fork of DataLogging by aapje monkey

Committer:
ptuytsch
Date:
Sat Apr 30 13:29:23 2016 +0000
Revision:
2:f3c2bf5521e5
Parent:
1:6e25c2b5c20c
Child:
3:610ace66d7af
adding BikeData;

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
ptuytsch 2:f3c2bf5521e5 10 //int count;
ptuytsch 2:f3c2bf5521e5 11 time_t StartTime;
ptuytsch 2:f3c2bf5521e5 12 float distance;
ptuytsch 2:f3c2bf5521e5 13 float lastDistance;
ptuytsch 2:f3c2bf5521e5 14 int lastCount;
ptuytsch 0:ec76b22829d5 15 public:
ptuytsch 2:f3c2bf5521e5 16 Data(float startDistance = 0,uint32_t time = 0);
ptuytsch 2:f3c2bf5521e5 17 float getDistance(void);
ptuytsch 2:f3c2bf5521e5 18 uint32_t getTime(void);
ptuytsch 2:f3c2bf5521e5 19 float getSpeed(void);
ptuytsch 2:f3c2bf5521e5 20 float getAverage(void);
ptuytsch 0:ec76b22829d5 21 int getLastCount(void);
ptuytsch 1:6e25c2b5c20c 22 void pressed(void);
ptuytsch 2:f3c2bf5521e5 23 void interval(int count);
ptuytsch 0:ec76b22829d5 24 };
ptuytsch 0:ec76b22829d5 25
ptuytsch 0:ec76b22829d5 26 #endif