2021-06-21 13:42:47 +02:00
|
|
|
/*
|
|
|
|
* dataPoolInit.cpp
|
|
|
|
*
|
|
|
|
* brief: Initialisation function for all variables in the data pool.
|
|
|
|
* This file was auto-generated by getDataPoolFromFLPmib.py via
|
|
|
|
* the flpmib database at 2018-06-04T12:02:46+00:00.
|
|
|
|
*/
|
|
|
|
#include "../../../bsp_linux/fsfwconfig/datapool/dataPoolInit.h"
|
|
|
|
|
|
|
|
void dataPoolInit(std::map<uint32_t, PoolEntryIF*>* pool_map) {
|
|
|
|
|
2021-09-15 19:17:34 +02:00
|
|
|
//Here the pool map entries of the DH and CONTROLLER are defined.
|
2021-09-10 17:08:38 +02:00
|
|
|
|
|
|
|
float Temperature_value[36] = {0};
|
|
|
|
pool_map->insert(
|
2021-09-15 19:17:34 +02:00
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::Temperature_value,
|
2021-09-10 17:08:38 +02:00
|
|
|
new PoolEntry<float>(Temperature_value, 36)));
|
|
|
|
unsigned int Temperature_Timestamp[36] = {0};
|
|
|
|
pool_map->insert(
|
2021-09-15 19:17:34 +02:00
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::Temperature_Timestamp,
|
2021-09-10 17:08:38 +02:00
|
|
|
new PoolEntry<unsigned int>(Temperature_Timestamp, 36)));
|
|
|
|
float Environmental_value[9] = {0};
|
|
|
|
pool_map->insert(
|
2021-09-15 19:17:34 +02:00
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::Environmental_value,
|
2021-09-10 17:08:38 +02:00
|
|
|
new PoolEntry<float>(Environmental_value, 9)));
|
|
|
|
unsigned int Environmental_Timestamp[9] = {0};
|
|
|
|
pool_map->insert(
|
2021-09-15 19:17:34 +02:00
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::Environmental_Timestamp,
|
2021-09-10 17:08:38 +02:00
|
|
|
new PoolEntry<unsigned int>(Environmental_Timestamp, 9)));
|
|
|
|
float Accelerometer_value[15] = {0};
|
|
|
|
pool_map->insert(
|
2021-09-15 19:17:34 +02:00
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::Accelerometer_value,
|
2021-09-10 17:08:38 +02:00
|
|
|
new PoolEntry<float>(Accelerometer_value, 15)));
|
|
|
|
unsigned int Accelerometer_Timestamp[15] = {0};
|
|
|
|
pool_map->insert(
|
2021-09-15 19:17:34 +02:00
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::Accelerometer_Timestamp,
|
2021-09-10 17:08:38 +02:00
|
|
|
new PoolEntry<unsigned int>(Accelerometer_Timestamp, 15)));
|
|
|
|
float TEMP_SENSOR_CH1[1] = {0};
|
|
|
|
pool_map->insert(
|
2021-09-15 19:17:34 +02:00
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::TEMP_SENSOR_CH1,
|
2021-09-10 17:08:38 +02:00
|
|
|
new PoolEntry<float>(TEMP_SENSOR_CH1, 1)));
|
|
|
|
float TEMP_SENSOR_CH2[1] = {0};
|
|
|
|
pool_map->insert(
|
2021-09-15 19:17:34 +02:00
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::TEMP_SENSOR_CH2,
|
2021-09-10 17:08:38 +02:00
|
|
|
new PoolEntry<float>(TEMP_SENSOR_CH2, 1)));
|
2021-09-15 19:17:34 +02:00
|
|
|
int8_t TargetState_COMPONENT_1[1] = {0};
|
2021-09-10 17:08:38 +02:00
|
|
|
pool_map->insert(
|
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::TargetState_COMPONENT_1,
|
2021-09-15 19:17:34 +02:00
|
|
|
new PoolEntry<int8_t>(TargetState_COMPONENT_1, 1)));
|
|
|
|
int8_t CurrentState_COMPONENT_1[1] = {0};
|
2021-09-10 17:08:38 +02:00
|
|
|
pool_map->insert(
|
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::CurrentState_COMPONENT_1,
|
2021-09-15 19:17:34 +02:00
|
|
|
new PoolEntry<int8_t>(CurrentState_COMPONENT_1, 1)));
|
|
|
|
uint8_t HeaterRequest_COMPONENT_1[1] = {0};
|
2021-09-10 17:08:38 +02:00
|
|
|
pool_map->insert(
|
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::HeaterRequest_COMPONENT_1,
|
2021-09-15 19:17:34 +02:00
|
|
|
new PoolEntry<uint8_t>(HeaterRequest_COMPONENT_1, 1)));
|
|
|
|
int8_t TargetState_COMPONENT_2[1] = {0};
|
2021-09-10 17:08:38 +02:00
|
|
|
pool_map->insert(
|
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::TargetState_COMPONENT_2,
|
2021-09-15 19:17:34 +02:00
|
|
|
new PoolEntry<int8_t>(TargetState_COMPONENT_2, 1)));
|
|
|
|
int8_t CurrentState_COMPONENT_2[1] = {0};
|
2021-09-10 17:08:38 +02:00
|
|
|
pool_map->insert(
|
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::CurrentState_COMPONENT_2,
|
2021-09-15 19:17:34 +02:00
|
|
|
new PoolEntry<int8_t>(CurrentState_COMPONENT_2, 1)));
|
|
|
|
uint8_t HeaterRequest_COMPONENT_2[1] = {0};
|
2021-09-10 17:08:38 +02:00
|
|
|
pool_map->insert(
|
|
|
|
std::pair<uint32_t, PoolEntryIF*>(datapool::HeaterRequest_COMPONENT_2,
|
2021-09-15 19:17:34 +02:00
|
|
|
new PoolEntry<uint8_t>(HeaterRequest_COMPONENT_2, 1)));
|
2021-09-10 17:08:38 +02:00
|
|
|
|
2021-06-21 13:42:47 +02:00
|
|
|
}
|