Improve readability of SubsystemBase::executeTable #49
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "spahr/SubsystemBase"
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?
The logic in
SubsystemBase::executeTable
handles the sending of mode commands to the respective children of some objects; and this functionality is (among other things) based on the health state of the respective child.To determine the health state, the fsfw function
ManagesHealthIF::isFaulty()
was used, see here.However, the name of this function is misleading, as it returns true if the health state is FAULTY or PERMANENT_FAULTY or NEEDS_RECOVERY.
This change aims to improve the readability of the code without modifying the function.
good old switch case. Thanks for improving this, this was really confusing
can you rebase or merge?