Hepta UplinkData
Dependencies: mbed PowerControl SDFileSystem
Fork of Hepta_UplinkData by
hepta_sat/HeptaGPS.h@4:4f34143d3f6e, 2016-12-23 (annotated)
- Committer:
- MEXT1
- Date:
- Fri Dec 23 04:44:57 2016 +0000
- Revision:
- 4:4f34143d3f6e
- Parent:
- 0:b96079b7d167
UplinkData
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tomoya123 | 0:b96079b7d167 | 1 | #ifndef MBED_HEPTAGPS_H |
tomoya123 | 0:b96079b7d167 | 2 | #define MBED_HEPTAGPS_H |
tomoya123 | 0:b96079b7d167 | 3 | #include "mbed.h" |
tomoya123 | 0:b96079b7d167 | 4 | |
tomoya123 | 0:b96079b7d167 | 5 | class HeptaGPS{ |
tomoya123 | 0:b96079b7d167 | 6 | public: |
tomoya123 | 0:b96079b7d167 | 7 | Serial gps; |
tomoya123 | 0:b96079b7d167 | 8 | HeptaGPS( |
tomoya123 | 0:b96079b7d167 | 9 | PinName tx, |
tomoya123 | 0:b96079b7d167 | 10 | PinName rx |
tomoya123 | 0:b96079b7d167 | 11 | ); |
tomoya123 | 0:b96079b7d167 | 12 | void baud(int rate); |
tomoya123 | 0:b96079b7d167 | 13 | char getc(); |
tomoya123 | 0:b96079b7d167 | 14 | int readable(); |
tomoya123 | 0:b96079b7d167 | 15 | void flushSerialBuffer(void); |
tomoya123 | 0:b96079b7d167 | 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); |
tomoya123 | 0:b96079b7d167 | 17 | void lat_log_sensing_u16(char *lat, char *log, int *dsize); |
tomoya123 | 0:b96079b7d167 | 18 | private: |
tomoya123 | 0:b96079b7d167 | 19 | char msg[256],msgd[256]; |
tomoya123 | 0:b96079b7d167 | 20 | int i,ite,rlock,stn; |
tomoya123 | 0:b96079b7d167 | 21 | char c; |
tomoya123 | 0:b96079b7d167 | 22 | char gps_data[7][1000]; |
tomoya123 | 0:b96079b7d167 | 23 | char ns,ew,statas; |
tomoya123 | 0:b96079b7d167 | 24 | float time,hokui,tokei,vel; |
tomoya123 | 0:b96079b7d167 | 25 | float g_hokui,g_tokei; |
tomoya123 | 0:b96079b7d167 | 26 | float d_hokui,m_hokui,d_tokei,m_tokei; |
tomoya123 | 0:b96079b7d167 | 27 | int h_time,m_time,s_time; |
tomoya123 | 0:b96079b7d167 | 28 | }; |
tomoya123 | 0:b96079b7d167 | 29 | #endif |