|
|
|
@ -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
|
|
|
|
|