From d78c746552cd2cccaab89829c3ff5f1babf3b637 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 6 Sep 2021 18:27:33 +0200 Subject: [PATCH] GPS Handler bugfixes --- mission/devices/GPSHyperionHandler.cpp | 3 ++- tmtc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mission/devices/GPSHyperionHandler.cpp b/mission/devices/GPSHyperionHandler.cpp index 9a97d2c0..e6389b58 100644 --- a/mission/devices/GPSHyperionHandler.cpp +++ b/mission/devices/GPSHyperionHandler.cpp @@ -82,7 +82,8 @@ ReturnValue_t GPSHyperionHandler::scanForReply(const uint8_t *start, size_t len, // Negative latitude -> South direction gpsSet.latitude.value = gpsData.latitude; // Negative longitude -> West direction - gpsSet.longitude.value = gpsData.latitude; + gpsSet.longitude.value = gpsData.longitude; + gpsSet.altitude.value = gpsData.altitude; gpsSet.fixMode.value = gpsData.fix_mode; gpsSet.satInUse.value = gpsData.sats_in_use; Clock::TimeOfDay_t timeStruct = {}; diff --git a/tmtc b/tmtc index 0f09809d..4e4d69f6 160000 --- a/tmtc +++ b/tmtc @@ -1 +1 @@ -Subproject commit 0f09809d21ceec9878396fb80b645868a0286c2a +Subproject commit 4e4d69f6d6f6e55b40e90804b3b8ecdba10d96f5