diff --git a/modules/src/TecModule.cc b/modules/src/TecModule.cc index 01baee37cb25f4eac82e0a0bc032aab651f7236f..337231d67f82ca510e874543a27a5aefb69f089c 100644 --- a/modules/src/TecModule.cc +++ b/modules/src/TecModule.cc @@ -28,7 +28,10 @@ void TecModule::mainLoop() { auto tecIface = std::make_shared<TecChimeraInterface>( triggerCommands, responseStatus, commandMemoryRaw_wr, commandMemoryRaw_rd, true); TecController tec{tecIface}; - tec.addFrame(0, TecFrame::TecParameter::ExpFanControlEnable, TecFrame::TecFrameType::TecParameterValueSet, 1, 42); + + /* This code is just for demonstration/testing purposes. We can use code like this to revese engineer the teclib + * when implementing the TecDummy backend. It will be removed later! */ + tec.addFrame(0, TecFrame::TecParameter::ObjMaxTempChange, TecFrame::TecFrameType::TecParameterValueSet, 1, 0.0F); tec.addFrame(0, TecFrame::TecParameter::DeviceStatus, TecFrame::TecFrameType::TecParameterValueRead, 1); std::cout << "constructAllFrames:" << std::endl; tec.constructAllFrames(); @@ -46,6 +49,7 @@ void TecModule::mainLoop() { std::cout << "parseAllFrames:" << std::endl; tec.parseAllFrames(); for(uint8_t i = 0; i < tec.getFrameCount(); i++) { + std::cout << "STATE = " << tec.getFrameAt(i)->getState() << std::endl; tec.getFrameAt(i)->print(); } std::cout << "done." << std::endl; diff --git a/tests/src/TecDummy.cc b/tests/src/TecDummy.cc index 12b7d3197b16db5ed2bbf84fb697093207f7e3ac..a9077df2f2a33263403336a58f723221fd717b19 100644 --- a/tests/src/TecDummy.cc +++ b/tests/src/TecDummy.cc @@ -68,7 +68,7 @@ std::string TecDummy::processFrame(const std::string& command) { // accessor. Just return this function, the done flag is automatically set by the caller. Remove this comment after // implementation. std::cout << "TecDummy::processFrame() command = " << command << std::endl; - return "MY REPLY"; + return "!000000MY_REPLY"; } /*********************************************************************************************************************/