for Danillo

Dependencies:   MBed_Adafruit-GPS-Library SDFileSystem mbed

dataPoint.h

Committer:
ncfronk
Date:
2015-01-17
Revision:
3:0cc40383d016
Parent:
2:abcf77d0e77d

File content as of revision 3:0cc40383d016:

#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:
    
};