Robin Mueller
00f411eaca
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
59 lines
2.0 KiB
C++
59 lines
2.0 KiB
C++
#include "PayloadPcduHandler.h"
|
|
|
|
PayloadPcduHandler::PayloadPcduHandler(object_id_t objectId, object_id_t comIF, CookieIF* cookie)
|
|
: DeviceHandlerBase(objectId, comIF, cookie), state(States::ON) {}
|
|
|
|
void PayloadPcduHandler::doStartUp() {
|
|
switch(state) {
|
|
case(States::ADC_OFF_PL_OFF): {
|
|
break;
|
|
}
|
|
case(States::SWITCH_ON_RELAY): {
|
|
// If necessary, check whether a certain amount of time has elapaed
|
|
break;
|
|
}
|
|
case(States::ADC_OFF_PL_OFF): {
|
|
break;
|
|
}
|
|
case(States::SWITCH_ON_HPA): {
|
|
// If necessary, check whether a certain amount of time has elapaed
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
void PayloadPcduHandler::doShutDown() {}
|
|
|
|
ReturnValue_t PayloadPcduHandler::buildNormalDeviceCommand(DeviceCommandId_t* id) {
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
}
|
|
|
|
ReturnValue_t PayloadPcduHandler::buildTransitionDeviceCommand(DeviceCommandId_t* id) {
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
}
|
|
|
|
void PayloadPcduHandler::fillCommandAndReplyMap() {}
|
|
|
|
ReturnValue_t PayloadPcduHandler::buildCommandFromCommand(DeviceCommandId_t deviceCommand,
|
|
const uint8_t* commandData,
|
|
size_t commandDataLen) {
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
}
|
|
|
|
ReturnValue_t PayloadPcduHandler::scanForReply(const uint8_t* start, size_t remainingSize,
|
|
DeviceCommandId_t* foundId, size_t* foundLen) {
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
}
|
|
|
|
ReturnValue_t PayloadPcduHandler::interpretDeviceReply(DeviceCommandId_t id,
|
|
const uint8_t* packet) {
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
}
|
|
|
|
uint32_t PayloadPcduHandler::getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) { return 10000; }
|
|
|
|
ReturnValue_t PayloadPcduHandler::initializeLocalDataPool(localpool::DataPool& localDataPoolMap,
|
|
LocalDataPoolManager& poolManager) {
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
}
|