Robin Mueller
bf2d97bd60
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
11 lines
382 B
C++
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();
|
|
}
|
|
}
|