added gps.sh read for APRS

bp-new
alanbjohnston 5 years ago committed by GitHub
parent 1a423e7dff
commit c14a147467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -893,6 +893,13 @@ void get_tlm(void) {
strcat(str, header_str2); strcat(str, header_str2);
} }
} }
// get GPS
char resBuffer[1000];
FILE * file_gps = popen("timeout 5 /home/pi/CubeSatSim/gpsd/gps.sh", "r");
fgets(resBuffer, 1000, file_gps);
printf("GPS: %s \n"&resBuffer);
// printf("Str: %s \n", str); // printf("Str: %s \n", str);
if (mode != CW) { if (mode != CW) {
// sprintf(header_str2b, "=%7.2f%c%c%c%08.2f%cShi hi ",4003.79,'N',0x5c,0x5c,07534.33,'W'); // add APRS lat and long // sprintf(header_str2b, "=%7.2f%c%c%c%08.2f%cShi hi ",4003.79,'N',0x5c,0x5c,07534.33,'W'); // add APRS lat and long

Loading…
Cancel
Save

Powered by TurnKey Linux.