tortuga DataLogging Library: battery, speed, time, average...
Fork of DataLogging by
Data.h@0:ec76b22829d5, 2016-04-16 (annotated)
- 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?
User | Revision | Line number | New 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 |