GPS working with LoRa code - can't transmit faster that once every 6 seconds
Dependencies: mbed LoRaWAN-lib_gps_lora SingleFrequencyLora
Diff: l86.hpp
- Revision:
- 10:0b5a507b4a4d
- Parent:
- 7:1c90f51096fe
- Child:
- 11:f2a7f98cc9bf
--- a/l86.hpp Mon Nov 13 19:51:18 2017 +0000 +++ b/l86.hpp Tue Nov 14 16:06:16 2017 +0000 @@ -54,10 +54,21 @@ char Mode[5]; /* N = No Fix, A = autonomous mode, D = Differential mode + checksum */ }RMC_data; -RMC_data Parse_RMC_data(char RMC_sentence[MAX_NMEA_LENGTH]); +typedef struct GPS_data +{ + char UTC_Time[10]; + char Latitude[10]; + char Longitude[11]; + char Speed_Over_Ground[4]; + char Course_Over_Ground[4]; + char Date[6]; + char Valid[2]; +}GPS_data; + +RMC_data Parse_RMC_sentence(char RMC_sentence[MAX_NMEA_LENGTH]); void Print_RMC_data(RMC_data *RMC_data_print); - -// struct RMC_msg l86_retreive_RMC(void) <= e.g. +GPS_data Parse_RMC_data(RMC_data RMC_parsed); +void Print_GPS_data(GPS_data GPS_data_print); #endif