transition
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2023-10-16 13:52:56 +02:00
parent 433373e6b7
commit 04c081f4aa
Signed by: muellerr
GPG Key ID: FCE0B2BD2195142F
2 changed files with 8 additions and 0 deletions

View File

@ -370,3 +370,10 @@ ReturnValue_t PowerController::calculateCoulombCounterChargeUpperThreshold() {
lookUpTableOcv[0][lookUpTableIdx + 1]); lookUpTableOcv[0][lookUpTableIdx + 1]);
return returnvalue::OK; return returnvalue::OK;
} }
void PowerController::startTransition(Mode_t mode, Submode_t submode) {
if (mode == MODE_OFF) {
enablePl.setValidity(false, true);
}
ControllerBase::startTransition(mode, submode);
}

View File

@ -22,6 +22,7 @@ class PowerController : public ExtendedControllerBase, public ReceivesParameterM
ReturnValue_t getParameter(uint8_t domainId, uint8_t parameterId, ReturnValue_t getParameter(uint8_t domainId, uint8_t parameterId,
ParameterWrapper* parameterWrapper, const ParameterWrapper* newValues, ParameterWrapper* parameterWrapper, const ParameterWrapper* newValues,
uint16_t startAtIndex) override; uint16_t startAtIndex) override;
void startTransition(Mode_t mode, Submode_t submode) override;
private: private:
bool enableHkSets = false; bool enableHkSets = false;