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

Dependents:   TORTUGA_BLE

Fork of DataLogging by aapje monkey

Committer:
ptuytsch
Date:
Sat Apr 16 14:55:37 2016 +0000
Revision:
0:ec76b22829d5
Child:
1:6e25c2b5c20c
basic logging

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 0:ec76b22829d5 9 InterruptIn button;
ptuytsch 0:ec76b22829d5 10 Ticker tick;
ptuytsch 0:ec76b22829d5 11 public:
ptuytsch 0:ec76b22829d5 12 Data(PinName pin);
ptuytsch 0:ec76b22829d5 13 double getDistance(void);
ptuytsch 0:ec76b22829d5 14 int getTime(void);
ptuytsch 0:ec76b22829d5 15 double getSpeed(void);
ptuytsch 0:ec76b22829d5 16 double getAverage(void);
ptuytsch 0:ec76b22829d5 17 int getLastCount(void);
ptuytsch 0:ec76b22829d5 18
ptuytsch 0:ec76b22829d5 19 };
ptuytsch 0:ec76b22829d5 20
ptuytsch 0:ec76b22829d5 21 #endif