Merge remote-tracking branch 'origin/develop' into thermal_controller
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
@ -46,6 +46,9 @@ void DualLaneAssemblyBase::startTransition(Mode_t mode, Submode_t submode) {
|
||||
AssemblyBase::startTransition(mode, submode);
|
||||
return;
|
||||
}
|
||||
if (sideSwitchState == SideSwitchState::NONE and sideSwitchTransition(mode, submode)) {
|
||||
sideSwitchState = SideSwitchState::REQUESTED;
|
||||
}
|
||||
uint8_t pwrSubmode = submode;
|
||||
if (sideSwitchState == SideSwitchState::REQUESTED) {
|
||||
pwrSubmode = duallane::DUAL_MODE;
|
||||
@ -61,7 +64,7 @@ void DualLaneAssemblyBase::startTransition(Mode_t mode, Submode_t submode) {
|
||||
}
|
||||
}
|
||||
|
||||
bool DualLaneAssemblyBase::isUseable(object_id_t object, Mode_t mode) {
|
||||
bool DualLaneAssemblyBase::isModeCommandable(object_id_t object, Mode_t mode) {
|
||||
if (healthHelper.healthTable->isFaulty(object)) {
|
||||
return false;
|
||||
}
|
||||
@ -70,10 +73,7 @@ bool DualLaneAssemblyBase::isUseable(object_id_t object, Mode_t mode) {
|
||||
if (childrenMap[object].mode == mode) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (healthHelper.healthTable->isCommandable(object)) {
|
||||
return true;
|
||||
}
|
||||
// Check for external control health state is done by base class.
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -115,9 +115,6 @@ ReturnValue_t DualLaneAssemblyBase::isModeCombinationValid(Mode_t mode, Submode_
|
||||
if (submode != A_SIDE and submode != B_SIDE and submode != DUAL_MODE) {
|
||||
return returnvalue::FAILED;
|
||||
}
|
||||
if (sideSwitchTransition(mode, submode)) {
|
||||
sideSwitchState = SideSwitchState::REQUESTED;
|
||||
}
|
||||
return returnvalue::OK;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user