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

Dependents:   TORTUGA_BLE

Fork of DataLogging by aapje monkey

Revision:
3:610ace66d7af
Parent:
2:f3c2bf5521e5
Child:
5:fad416fb6979
--- a/BikeData.h	Sat Apr 30 13:29:23 2016 +0000
+++ b/BikeData.h	Tue Jul 12 11:54:41 2016 +0000
@@ -11,16 +11,24 @@
     Data *tripData;
     Data *batChangeData;
     Data* dataSet[3];
-    bool trackTrip;
-    uint16_t count;
+    bool logging;
+    uint8_t count;
+    float lastDistance;
+    uint8_t lastCount;
 public:
     BikeData(PinName pin);
+    int8_t getBikeNameSize();
+    void getBikeName(char *name);
+    void setBikeName(char* name,uint8_t length);
     void pressed(void);
     void interval(void);
     Data* getDataSet(uint8_t type);
     void startTrip();
     void pauzeTrip();
     void stopTrip();
+    float getSpeed(void);
+    uint8_t getLastCount(void);
+    bool isLogging();
     
     enum{
         OVERALL = 0,