implementação do sgam_mdw baseado na placa NUCLEO FZ429ZI para ser testada

Dependencies:   MPU6050 Grove_temperature

Dependents:   sgam_mdw_test

sensor/gps/GPS.h

Committer:
AndersonIctus
Date:
2019-07-20
Revision:
17:8789ab4067a6

File content as of revision 17:8789ab4067a6:

#ifndef SGAM_MDW_SENSOR_GPS_H
#define SGAM_MDW_SENSOR_GPS_H

#include "sgam_mdw.h"
#include "mbed.h"

class GPSData {
public:
    float longitude;
    float latitude;
    float meters;

    GPSData(){ }
    ~GPSData(){ }
};

// FAKE Gps to send fake values !
class GPS: Sensor<GPSData> {
public:
    GPS();
    virtual ~GPS();

    virtual int initialize();
    virtual int finalize();

    virtual GPSData* getValue();
    virtual const char* getName();

private:
    void getLocation(GPSData* data);
};
#endif