|
|
|
@ -332,7 +332,10 @@ int main(int argc, char * argv[]) {
|
|
|
|
|
|
|
|
|
|
|
|
cmdbuffer[0] = '\0';
|
|
|
|
cmdbuffer[0] = '\0';
|
|
|
|
gps_status = OFF;
|
|
|
|
gps_status = OFF;
|
|
|
|
FILE *gps_read = sopen("python3 /home/pi/CubeSatSim/gps_client.py"); // python sensor polling function
|
|
|
|
FILE *gps_read = NULL;
|
|
|
|
|
|
|
|
if ((mode == AFSK) || (mode == CW) || mode == SSTV))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
gps_read = sopen("python3 /home/pi/CubeSatSim/gps_client.py"); // python sensor polling function
|
|
|
|
|
|
|
|
|
|
|
|
if (gps_read != NULL) {
|
|
|
|
if (gps_read != NULL) {
|
|
|
|
fgets(cmdbuffer, 1000, gps_read);
|
|
|
|
fgets(cmdbuffer, 1000, gps_read);
|
|
|
|
@ -345,9 +348,10 @@ int main(int argc, char * argv[]) {
|
|
|
|
gps_status = ON;
|
|
|
|
gps_status = ON;
|
|
|
|
fprintf(stderr, "Pi GPS on\n");
|
|
|
|
fprintf(stderr, "Pi GPS on\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// fclose(gps_read);
|
|
|
|
// fclose(gps_read);
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|
fprintf(stderr, "Error checking gps");
|
|
|
|
fprintf(stderr, "Error checking gps");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
payload = OFF;
|
|
|
|
payload = OFF;
|
|
|
|
|
|
|
|
|
|
|
|
|