for Danillo
Dependencies: MBed_Adafruit-GPS-Library SDFileSystem mbed
Diff: dataPoint.h
- Revision:
- 2:abcf77d0e77d
diff -r f5770d9636b4 -r abcf77d0e77d dataPoint.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dataPoint.h Thu Dec 11 01:23:24 2014 +0000 @@ -0,0 +1,34 @@ +#include "mbed.h" +#include "math.h" + +class dataPoint{ + public: + uint8_t hour, minute, seconds, year, month, day; + uint16_t milliseconds; + float latitude, longitude, geoidheight, altitude; + bool fix; + uint8_t fixquality, satellites; + + float LongAvg, ShortAvg, RefAvg; + + + void setTime(uint8_t h, uint8_t m, uint8_t s, uint16_t mil){ + hour = h; + minute = m; + seconds = s; + milliseconds = mil; + }; + + void setPos(float lat, float lon){ + latitude = lat; + longitude = lon; + }; + void setDate(uint8_t y, uint8_t m, uint8_t d){ + year = y; + month = m; + day = d; + }; + + private: + +}; \ No newline at end of file