This commit is contained in:
Marius Eggert 2023-06-10 15:14:20 +02:00
parent 1dd38acee4
commit 824f445ee1
2 changed files with 21 additions and 1 deletions

View File

@ -113,6 +113,6 @@ void ObjectFactory::produce(void* args) {
createMiscComponents();
createThermalController(*heaterHandler);
createAcsController(true, enableHkSets);
createPowerC
createPowerController(enableHkSets);
satsystem::init();
}

View File

@ -53,3 +53,23 @@ ReturnValue_t PowerController::initializeLocalDataPool(localpool::DataPool &loca
LocalDataPoolManager &poolManager) {
return returnvalue::OK;
}
LocalPoolDataSetBase *PowerController::getDataSetHandle(sid_t sid) {
switch (sid.ownerSetId) {
default:
return nullptr;
}
return nullptr;
}
ReturnValue_t PowerController::checkModeCommand(Mode_t mode, Submode_t submode,
uint32_t *msToReachTheMode) {
if (mode == MODE_OFF) {
if (submode == SUBMODE_NONE) {
return returnvalue::OK;
} else {
return INVALID_SUBMODE;
}
}
return INVALID_MODE;
}