![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
commit
Dependencies: MPU6050_SIM5320_TEST
Fork of MPU_SDCARD by
Diff: DataLogger/DataLogger.h
- Revision:
- 1:75966605a6a3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DataLogger/DataLogger.h Fri Nov 10 15:35:26 2017 +0000 @@ -0,0 +1,44 @@ +#ifndef _DATALOGGER_H +#define _DATALOGGER_H + +//#include "DataLogger.h" +#include <stdint.h> + +#define DATASIZE 20 + +using namespace std; + + +//*************************************************************LOGGER**************************************************************************// + +template<class T> +class DataLogger{ +private: + + T _datalist[DATASIZE]; + int _index; + + +public: + + + DataLogger(){//cout<<"Default Constructor"<<endl; + for(int i=0;i<DATASIZE;i++) + _datalist[i]._date=0; + _index=-1;} + DataLogger(T b){//cout<<"Constructor"<<endl; + _index=-1;} + void savelog(T templog); + void print(); + uint16_t getsize(); + uint8_t position(); + T* getfirst(); + T* getlast(); + uint16_t getnumberOfDays(); + T* getLastStop(); + + + +}; +#endif +