From cb3bfac7c3e83dd36f54ac772606c4067bbce565 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 19 Jan 2026 10:06:08 -0500 Subject: [PATCH] Update main.c gps_client continuous reading --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 6d168cb6..f511b8fa 100644 --- a/main.c +++ b/main.c @@ -345,7 +345,7 @@ int main(int argc, char * argv[]) { gps_status = ON; fprintf(stderr, "Pi GPS on\n"); } - fclose(gps_read); +// fclose(gps_read); } else fprintf(stderr, "Error checking gps"); @@ -766,9 +766,10 @@ int main(int argc, char * argv[]) { if (gps_status == TRUE) { fprintf(stderr, "Checking Pi gps\n"); cmdbuffer[0] = '\0'; - gps_read = sopen("python3 /home/pi/CubeSatSim/gps_client.py"); // python sensor polling function +// gps_read = sopen("python3 /home/pi/CubeSatSim/gps_client.py"); // python sensor polling function if (gps_read != NULL) { + fputc('\n', gps_read); fgets(cmdbuffer, 1000, gps_read); // const char gpsTestStr[] = "2 32.3 -54 333\n";