fsfw/src/fsfw/subsystem/helper.cpp

16 lines
566 B
C++
Raw Normal View History

2022-09-29 19:21:24 +02:00
#include "helper.h"
ReturnValue_t modetree::connectModeTreeParent(HasModeTreeChildrenIF& parent,
const ModeTreeChildIF& child,
HealthHelper* healthHelper, ModeHelper& modeHelper) {
2022-09-29 19:21:24 +02:00
ReturnValue_t result = parent.registerChild(child);
if (result != returnvalue::OK) {
return result;
}
if (healthHelper != nullptr) {
healthHelper->setParentQueue(parent.getCommandQueue());
}
2022-09-29 19:21:24 +02:00
modeHelper.setParentQueue(parent.getCommandQueue());
return returnvalue::OK;
}