GPS

Dependents:   CameraC1098_GPS_different_Lib

Committer:
hepta2ume
Date:
Thu Aug 03 04:28:24 2017 +0000
Revision:
0:1be20a74923d
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hepta2ume 0:1be20a74923d 1 #ifndef MBED_HEPTAGPS_H
hepta2ume 0:1be20a74923d 2 #define MBED_HEPTAGPS_H
hepta2ume 0:1be20a74923d 3 #include "mbed.h"
hepta2ume 0:1be20a74923d 4
hepta2ume 0:1be20a74923d 5 class HeptaGPS{
hepta2ume 0:1be20a74923d 6 public:
hepta2ume 0:1be20a74923d 7 Serial gps;
hepta2ume 0:1be20a74923d 8 HeptaGPS(
hepta2ume 0:1be20a74923d 9 PinName tx,
hepta2ume 0:1be20a74923d 10 PinName rx
hepta2ume 0:1be20a74923d 11 );
hepta2ume 0:1be20a74923d 12 void baud(int rate);
hepta2ume 0:1be20a74923d 13 char getc();
hepta2ume 0:1be20a74923d 14 int readable();
hepta2ume 0:1be20a74923d 15 void flushSerialBuffer(void);
hepta2ume 0:1be20a74923d 16 void gga_sensing(float *time, float *latitude, char *ns, float *longitude, char *ew, int *quality, int *stnum, float *hacu, float *altitude, char *aunit, int *gps_check);
hepta2ume 0:1be20a74923d 17 void lat_log_sensing_u16(char *lat, char *log, int *dsize);
hepta2ume 0:1be20a74923d 18 private:
hepta2ume 0:1be20a74923d 19 char msg[256],msgd[256];
hepta2ume 0:1be20a74923d 20 int i,ite,rlock,stn;
hepta2ume 0:1be20a74923d 21 char c;
hepta2ume 0:1be20a74923d 22 char gps_data[7][1000];
hepta2ume 0:1be20a74923d 23 char ns,ew,statas;
hepta2ume 0:1be20a74923d 24 float time,hokui,tokei,vel;
hepta2ume 0:1be20a74923d 25 float g_hokui,g_tokei;
hepta2ume 0:1be20a74923d 26 float d_hokui,m_hokui,d_tokei,m_tokei;
hepta2ume 0:1be20a74923d 27 int h_time,m_time,s_time;
hepta2ume 0:1be20a74923d 28 };
hepta2ume 0:1be20a74923d 29 #endif