From f0fec11ad7fd289f2368054601b42c9a0ee05deb Mon Sep 17 00:00:00 2001 From: Marius Eggert Date: Mon, 10 Oct 2022 16:00:31 +0200 Subject: [PATCH] set channel output valid flag to true --- dummies/SusDummy.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dummies/SusDummy.cpp b/dummies/SusDummy.cpp index 0c2feaac..d209368b 100644 --- a/dummies/SusDummy.cpp +++ b/dummies/SusDummy.cpp @@ -42,12 +42,12 @@ void SusDummy::performControlOperation() { value = sin(iteration / 80. * M_PI + 10) * 10 - 10; susSet.read(); - susSet.temperatureCelcius = value; - if ((iteration % 100) < 20) { - susSet.setValidity(false, true); - } else { - susSet.setValidity(true, true); - } +// susSet.temperatureCelcius = value; +// if ((iteration % 100) < 20) { +// susSet.setValidity(false, true); +// } else { +// susSet.setValidity(true, true); +// } susSet.channels[0] = 3913; susSet.channels[1] = 3912; susSet.channels[2] = 3799; @@ -60,7 +60,7 @@ ReturnValue_t SusDummy::initializeLocalDataPool(localpool::DataPool& localDataPo LocalDataPoolManager& poolManager) { localDataPoolMap.emplace(SUS::SusPoolIds::TEMPERATURE_C, new PoolEntry({0}, 1, true)); localDataPoolMap.emplace(SUS::SusPoolIds::CHANNEL_VEC, - new PoolEntry({0, 0, 0, 0, 0, 0})); + new PoolEntry({0, 0, 0, 0, 0, 0},true)); return returnvalue::OK; }