Adaptions to make shared power lines possible #57
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "spahr/shared"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
WIP: Adaptions to make shared power lines possibleto Adaptions to make shared power lines possibleThis would be ready to be merged. @muellerr Could you please review this? Thank you!
This is related to this merge request on sourceobsw.
Checkout
From your project repository, check out a new branch and test the changes.