Wataru Mikawa / GPS

Dependents:   Sample_GPSlib

GPS.h

Committer:
mikawataru
Date:
2017-07-14
Revision:
0:8c134f1c71f2
Child:
1:8425c3fba1c3

File content as of revision 0:8c134f1c71f2:

#ifndef GPS_H
#define GPS_H 

#include "mbed.h"

class GPS{
private:
   Serial gps;
   char gps_data[256];
   int cnt_gps;
public:
   Serial *debug;
   GPS(PinName tx, PinName rx) : gps(tx,rx){
      gps.baud(9600);
   };
   void getGPS();
   void LogStart(PinName tx, PinName rx);
   float calcLatitude(float raw_data); 
   float calcLongitude(float raw_data);
};

#endif