From ea7b43234e7f27660f2d8b8d401c0217d314cab5 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 9 Feb 2023 17:56:20 +0100 Subject: [PATCH] gps bugfix --- CHANGELOG.md | 5 ++++ generators/.run/all.run.xml | 24 ++++++++++++++++++++ linux/devices/GpsHyperionLinuxController.cpp | 1 + 3 files changed, 30 insertions(+) create mode 100644 generators/.run/all.run.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index d92d6113..f63fbafe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,11 @@ change warranting a new major release: - Reworked dummy handling for the TCS controller. - Generator scripts now generate files for hosted and for Q7S build. +## Fixed + +- GPS Controller: Set fix value to 0 when switching off to allow + `GPS_FIX_CHANGE` to work when switching the GPS back on. + # [v1.26.2] 2023-02-08 ## Changed diff --git a/generators/.run/all.run.xml b/generators/.run/all.run.xml new file mode 100644 index 00000000..089f02d0 --- /dev/null +++ b/generators/.run/all.run.xml @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/linux/devices/GpsHyperionLinuxController.cpp b/linux/devices/GpsHyperionLinuxController.cpp index d3f1f868..afc76fcf 100644 --- a/linux/devices/GpsHyperionLinuxController.cpp +++ b/linux/devices/GpsHyperionLinuxController.cpp @@ -47,6 +47,7 @@ ReturnValue_t GpsHyperionLinuxController::checkModeCommand(Mode_t mode, Submode_ gpsSet.setValidity(false, true); // There can't be a fix with a device that is off. triggerEvent(GpsHyperion::GPS_FIX_CHANGE, gpsSet.fixMode.value, 0); + gpsSet.fixMode.value = 0; oneShotSwitches.reset(); modeCommanded = false; }