WIP: Power Controller for SoC Calculation #668

Closed
meggert wants to merge 4 commits from soc-calculator into v4.0.0-dev
2 changed files with 21 additions and 1 deletions
Showing only changes of commit 824f445ee1 - Show all commits

View File

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

View File

@ -53,3 +53,23 @@ ReturnValue_t PowerController::initializeLocalDataPool(localpool::DataPool &loca
LocalDataPoolManager &poolManager) { LocalDataPoolManager &poolManager) {
return returnvalue::OK; 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;
}