Adaptions to make shared power lines possible #57

Open
mspahr wants to merge 3 commits from spahr/shared into main
Member

To make shared power lines on SOURCE possible, I added a bit of functionality to the SubsystemBase. The newly introduced function SubsystemBase::convertToDeviceObjectId() allows the user to manually override the objectId from the mode-tree. This is necessary because the fsfw is accessing the health-state of an object directly via the healthTable (and not sending messages, like for mode changes) - therefore "ignoring" mode-tree relations with this direct access. I added a default implementation of this function which directly returns it's input - therefore, this is backwards compatible.

Additionally (and not really related), I made the recovery-time (the time the device is in MODE_OFF during a recovery) accessible and modifiable by the user. This was still an open #todo based on the comments in the fsfw. For SOURCE, this is needed due to the long time (mutliple seconds) the PCDU actually needs to change the state of a power line.

To make shared power lines on _SOURCE_ possible, I added a bit of functionality to the SubsystemBase. The newly introduced function `SubsystemBase::convertToDeviceObjectId()` allows the user to manually override the objectId from the mode-tree. This is necessary because the fsfw is accessing the health-state of an object directly via the healthTable (and not sending messages, like for mode changes) - therefore "ignoring" mode-tree relations with this direct access. I added a default implementation of this function which directly returns it's input - therefore, this is backwards compatible. Additionally (and not really related), I made the recovery-time (the time the device is in MODE_OFF during a recovery) accessible and modifiable by the user. This was still an open #todo based on the comments in the fsfw. For SOURCE, this is needed due to the long time (mutliple seconds) the PCDU actually needs to change the state of a power line.
mspahr added 3 commits 2025-04-07 09:04:59 +02:00
mspahr changed title from WIP: Adaptions to make shared power lines possible to Adaptions to make shared power lines possible 2025-04-07 20:23:38 +02:00
Author
Member

This would be ready to be merged. @muellerr Could you please review this? Thank you!

This would be ready to be merged. @muellerr Could you please review this? Thank you!
Author
Member

This is related to this merge request on sourceobsw.

This is related to [this merge request on sourceobsw](https://git.ksat-stuttgart.de/source/source-obdh_obsw/sourceobsw/-/merge_requests/245).
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin spahr/shared:spahr/shared
git checkout spahr/shared
Sign in to join this conversation.
No description provided.