First Version of ACS Controller #329

Merged
muellerr merged 106 commits from acs-ctrl-v1 into develop 2022-12-02 16:21:58 +01:00
Showing only changes of commit f0fec11ad7 - Show all commits

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;
}