PLANET-Q AE-GPS Library

Dependents:   IZU2020_AVIONICS IZU2020_AVIONICS

PQAEGPS.h

Committer:
tanahashi
Date:
2019-12-17
Revision:
0:55b72d6ab099
Child:
1:a1a0ccb98643

File content as of revision 0:55b72d6ab099:

#ifndef PQAEGPS_H
#define PQAEGPS_H

class AEGPS{
private:
    Serial *_serial;
    char rx_buf[256];
    int index;
    int flag;
    int hour;
    int min;
    float sec;
    float lat;
    char ns;
    float lon;
    char ew;
    int fix;
    int sat;
    float hdop;
    float alt;
    float geoid;
    
public:
    AEGPS(Serial &gps);
    
private:
    void receive();

public:
    int get_hour();
    int get_min();
    float get_sec();
    float get_lat();
    float get_lon();
    int get_fix();
    int get_sat();
    float get_hdop();
    float get_alt();
    float get_geoid();
};

#endif