The Opportunity Factory / DataLogging

Dependents:   TORTUGA_BLE

Fork of DataLogging by aapje monkey

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

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ptuytsch 2:f3c2bf5521e5 1 #ifndef BIKEDATA_H
ptuytsch 2:f3c2bf5521e5 2 #define BIKEDATA_H
ptuytsch 2:f3c2bf5521e5 3 #include "mbed.h"
ptuytsch 2:f3c2bf5521e5 4 #include "Data.h"
ptuytsch 2:f3c2bf5521e5 5
ptuytsch 2:f3c2bf5521e5 6 class BikeData{
ptuytsch 2:f3c2bf5521e5 7 protected:
ptuytsch 2:f3c2bf5521e5 8 InterruptIn button;
ptuytsch 2:f3c2bf5521e5 9 Ticker tick;
ptuytsch 2:f3c2bf5521e5 10 Data *overallData;
ptuytsch 2:f3c2bf5521e5 11 Data *tripData;
ptuytsch 2:f3c2bf5521e5 12 Data *batChangeData;
ptuytsch 2:f3c2bf5521e5 13 Data* dataSet[3];
ptuytsch 2:f3c2bf5521e5 14 bool trackTrip;
ptuytsch 2:f3c2bf5521e5 15 uint16_t count;
ptuytsch 2:f3c2bf5521e5 16 public:
ptuytsch 2:f3c2bf5521e5 17 BikeData(PinName pin);
ptuytsch 2:f3c2bf5521e5 18 void pressed(void);
ptuytsch 2:f3c2bf5521e5 19 void interval(void);
ptuytsch 2:f3c2bf5521e5 20 Data* getDataSet(uint8_t type);
ptuytsch 2:f3c2bf5521e5 21 void startTrip();
ptuytsch 2:f3c2bf5521e5 22 void pauzeTrip();
ptuytsch 2:f3c2bf5521e5 23 void stopTrip();
ptuytsch 2:f3c2bf5521e5 24
ptuytsch 2:f3c2bf5521e5 25 enum{
ptuytsch 2:f3c2bf5521e5 26 OVERALL = 0,
ptuytsch 2:f3c2bf5521e5 27 TRIP = 1,
ptuytsch 2:f3c2bf5521e5 28 BATCHANGE = 2
ptuytsch 2:f3c2bf5521e5 29 };
ptuytsch 2:f3c2bf5521e5 30 };
ptuytsch 2:f3c2bf5521e5 31
ptuytsch 2:f3c2bf5521e5 32 #endif