eive-obsw/mission/system/objects/CamSwitcher.cpp

11 lines
382 B
C++
Raw Normal View History

2022-11-03 22:59:51 +01:00
#include "CamSwitcher.h"
CamSwitcher::CamSwitcher(object_id_t objectId, PowerSwitchIF &pwrSwitcher,
2022-11-03 22:59:51 +01:00
power::Switch_t pwrSwitch)
: PowerSwitcherComponent(objectId, &pwrSwitcher, pwrSwitch) {}
void CamSwitcher::performFaultyOperation() {
if (not switcher.active() and switcher.getState() != PowerSwitcher::SWITCH_IS_OFF) {
switcher.turnOff();
}
}