this might work

This commit is contained in:
Marius Eggert 2024-03-18 17:20:55 +01:00
parent 18d3c8fa91
commit 0cbac07f15
2 changed files with 7 additions and 6 deletions

View File

@ -257,16 +257,17 @@ ReturnValue_t GpsHyperionLinuxController::handleCoreTelemetry(bool modeIsSet) {
if (maxTimeToReachFix.hasTimedOut()) {
// We are supposed to be on and functioning, but no fix was found
// Set HK entries invalid
PoolReadGuard pg(&gpsSet);
gpsSet.setValidity(false, true);
if (resetCallback != nullptr) {
ReturnValue_t result = resetCallback(0, 1, resetCallbackArgs);
uint8_t chip = GpsHyperion::GnssChip::A_SIDE;
ReturnValue_t result = resetCallback(&chip, 1, resetCallbackArgs);
if (result != returnvalue::OK) {
// ToDo: Trigger Event
triggerEvent(GpsHyperion::RESET_FAIL, chip);
}
result = resetCallback(1, 1, resetCallbackArgs);
chip = GpsHyperion::GnssChip::B_SIDE;
result = resetCallback(&chip, 1, resetCallbackArgs);
if (result != returnvalue::OK) {
// ToDo: Trigger Event
triggerEvent(GpsHyperion::RESET_FAIL, chip);
}
}
}

View File

@ -5,7 +5,7 @@
#include <fsfw/FSFW.h>
#include <fsfw/controller/ExtendedControllerBase.h>
#include <fsfw/devicehandlers/DeviceHandlerBase.h>
#include <mission/acs/archive/GPSDefinitions.h>
#include <linux/acs/GPSDefinitions.h>
#include <mission/utility/trace.h>
#ifdef FSFW_OSAL_LINUX