From 1e12753533f3516fe0e63c9ca54d381ae00c2702 Mon Sep 17 00:00:00 2001 From: "spahr@ksat-stuttgart.de" <spahr@ksat-stuttgart.de> Date: Sat, 22 Mar 2025 09:49:44 +0100 Subject: [PATCH] add device object id to event --- src/fsfw/devicehandlers/AssemblyBase.cpp | 2 +- src/fsfw/health/HasHealthIF.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fsfw/devicehandlers/AssemblyBase.cpp b/src/fsfw/devicehandlers/AssemblyBase.cpp index 5424ce39..ada7c4a8 100644 --- a/src/fsfw/devicehandlers/AssemblyBase.cpp +++ b/src/fsfw/devicehandlers/AssemblyBase.cpp @@ -250,7 +250,7 @@ bool AssemblyBase::checkAndHandleRecovery() { doStartTransition(targetMode, targetSubmode); return true; case RECOVERY_ONGOING_2: - triggerEvent(RECOVERY_DONE); + triggerEvent(RECOVERY_DONE, recoveringDevice->first); // Now we're through, but not sure if it was successful. recoveryState = RECOVERY_IDLE; return false; diff --git a/src/fsfw/health/HasHealthIF.h b/src/fsfw/health/HasHealthIF.h index 07f9a5b4..483b60c1 100644 --- a/src/fsfw/health/HasHealthIF.h +++ b/src/fsfw/health/HasHealthIF.h @@ -34,6 +34,7 @@ class HasHealthIF { //! P1: 0 for the first, 1 for the second event. P2: 0 static const Event RECOVERY_STEP = MAKE_EVENT(11, severity::MEDIUM); //! Recovery was completed. Not necessarily successful. No parameters. + //! P1: Object Id of the recovering device. static const Event RECOVERY_DONE = MAKE_EVENT(12, severity::MEDIUM); //! Recovery is ongoing. The recovering device is currently OFF, waiting for restart. //! P1: Object Id of the recovering device.