eive-obsw/mission/system/objects/CamSwitcher.cpp
Robin Mueller bf2d97bd60
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
continue thermal controller overheating
2023-03-13 15:59:19 +01:00

11 lines
382 B
C++

#include "CamSwitcher.h"
CamSwitcher::CamSwitcher(object_id_t objectId, PowerSwitchIF &pwrSwitcher,
power::Switch_t pwrSwitch)
: PowerSwitcherComponent(objectId, &pwrSwitcher, pwrSwitch) {}
void CamSwitcher::performFaultyOperation() {
if (not switcher.active() and switcher.getState() != PowerSwitcher::SWITCH_IS_OFF) {
switcher.turnOff();
}
}