better but still not fixed
EIVE/eive-obsw/pipeline/pr-main There was a failure building this commit Details

This commit is contained in:
Marius Eggert 2024-03-15 14:54:16 +01:00
parent 3c869e5215
commit 7a43e1bc67
1 changed files with 6 additions and 12 deletions

View File

@ -256,23 +256,17 @@ ReturnValue_t GpsHyperionLinuxController::handleCoreTelemetry(bool modeIsSet) {
if (newFix == GpsHyperion::FixMode::NOT_SEEN or newFix == GpsHyperion::FixMode::NO_FIX) {
if (maxTimeToReachFix.hasTimedOut()) {
// We are supposed to be on and functioning, but no fix was found
// ToDo:: maybe pull reset pins here
// Set HK entries invalid
PoolReadGuard pg(&gpsSet);
gpsSet.setValidity(false, true);
if (resetCallback != nullptr) {
PoolReadGuard pg(&gpsSet);
// Set HK entries invalid
gpsSet.setValidity(false, true);
ReturnValue_t result = resetCallback(0, 1, resetCallbackArgs);
if (result != returnvalue::OK) {
return result;
// ToDo: Trigger Event
}
}
if (resetCallback != nullptr) {
PoolReadGuard pg(&gpsSet);
// Set HK entries invalid
gpsSet.setValidity(false, true);
ReturnValue_t result = resetCallback(1, 1, resetCallbackArgs);
result = resetCallback(1, 1, resetCallbackArgs);
if (result != returnvalue::OK) {
return result;
// ToDo: Trigger Event
}
}
}