From 1b10b76656c0794330ffd6651ce1f0412a6df9c4 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 11 Jul 2021 12:01:07 -0400 Subject: [PATCH] long_gps typo --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index f4845b31..d1ddd57a 100644 --- a/main.c +++ b/main.c @@ -903,7 +903,7 @@ void get_tlm(void) { printf("GPS: %s \n", &resBuffer); pclose(file_gps); - float lat_gps = 0.0f, long_gps = 0.0f, alt_gps = 0.0f; + float lat_gps = 0.0f, lon_gps = 0.0f, alt_gps = 0.0f; file_gps = popen("timeout 15 /home/pi/CubeSatSim/gpsd/gps.sh", "r"); fscanf(file_gps, "%f %f %f", & lat_gps, & lon_gps, & alt_gps); printf("GPS Data: %f, %f, %f \n", lat_gps, lon_gps, alt_gps);