set channel output valid flag to true
This commit is contained in:
parent
d9f2dfa725
commit
f0fec11ad7
@ -42,12 +42,12 @@ void SusDummy::performControlOperation() {
|
|||||||
value = sin(iteration / 80. * M_PI + 10) * 10 - 10;
|
value = sin(iteration / 80. * M_PI + 10) * 10 - 10;
|
||||||
|
|
||||||
susSet.read();
|
susSet.read();
|
||||||
susSet.temperatureCelcius = value;
|
// susSet.temperatureCelcius = value;
|
||||||
if ((iteration % 100) < 20) {
|
// if ((iteration % 100) < 20) {
|
||||||
susSet.setValidity(false, true);
|
// susSet.setValidity(false, true);
|
||||||
} else {
|
// } else {
|
||||||
susSet.setValidity(true, true);
|
// susSet.setValidity(true, true);
|
||||||
}
|
// }
|
||||||
susSet.channels[0] = 3913;
|
susSet.channels[0] = 3913;
|
||||||
susSet.channels[1] = 3912;
|
susSet.channels[1] = 3912;
|
||||||
susSet.channels[2] = 3799;
|
susSet.channels[2] = 3799;
|
||||||
@ -60,7 +60,7 @@ ReturnValue_t SusDummy::initializeLocalDataPool(localpool::DataPool& localDataPo
|
|||||||
LocalDataPoolManager& poolManager) {
|
LocalDataPoolManager& poolManager) {
|
||||||
localDataPoolMap.emplace(SUS::SusPoolIds::TEMPERATURE_C, new PoolEntry<float>({0}, 1, true));
|
localDataPoolMap.emplace(SUS::SusPoolIds::TEMPERATURE_C, new PoolEntry<float>({0}, 1, true));
|
||||||
localDataPoolMap.emplace(SUS::SusPoolIds::CHANNEL_VEC,
|
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;
|
return returnvalue::OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user