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

Dependents:   TORTUGA_BLE

Fork of DataLogging by aapje monkey

Revision:
2:f3c2bf5521e5
Parent:
1:6e25c2b5c20c
Child:
3:610ace66d7af
diff -r 6e25c2b5c20c -r f3c2bf5521e5 Data.h
--- a/Data.h	Fri Apr 29 15:51:04 2016 +0000
+++ b/Data.h	Sat Apr 30 13:29:23 2016 +0000
@@ -6,17 +6,21 @@
 class Data{
     //Ticker voor peroidieke metingen.
 protected:
-    InterruptIn button;
-    Ticker tick;
+    
+    //int count;
+    time_t StartTime;
+    float distance;
+    float lastDistance;
+    int lastCount;
 public:
-    Data(PinName pin);
-    double getDistance(void);
-    int getTime(void);
-    double getSpeed(void);
-    double getAverage(void);
+    Data(float startDistance = 0,uint32_t time = 0);
+    float getDistance(void);
+    uint32_t getTime(void);
+    float getSpeed(void);
+    float getAverage(void);
     int getLastCount(void);
     void pressed(void);
-    void interval(void);
+    void interval(int count);
 };
     
 #endif
\ No newline at end of file