set channel output valid flag to true

This commit is contained in:
Marius Eggert 2022-10-10 16:00:31 +02:00
parent d9f2dfa725
commit f0fec11ad7

View File

@ -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<float>({0}, 1, true));
localDataPoolMap.emplace(SUS::SusPoolIds::CHANNEL_VEC,
new PoolEntry<uint16_t>({0, 0, 0, 0, 0, 0}));
new PoolEntry<uint16_t>({0, 0, 0, 0, 0, 0},true));
return returnvalue::OK;
}