2022-02-14 13:49:12 +01:00
|
|
|
#ifndef MISSION_CONTROLLER_CONTROLLERDEFINITIONS_THERMALCONTROLLERDEFINITIONS_H_
|
|
|
|
#define MISSION_CONTROLLER_CONTROLLERDEFINITIONS_THERMALCONTROLLERDEFINITIONS_H_
|
|
|
|
|
|
|
|
#include <fsfw/datapoollocal/LocalPoolVariable.h>
|
|
|
|
#include <fsfw/datapoollocal/StaticLocalDataSet.h>
|
|
|
|
|
|
|
|
namespace thermalControllerDefinitions {
|
|
|
|
|
2022-05-24 16:52:21 +02:00
|
|
|
enum SetIds : uint32_t {
|
|
|
|
SENSOR_TEMPERATURES,
|
|
|
|
DEVICE_TEMPERATURES,
|
|
|
|
SUS_TEMPERATURES,
|
|
|
|
COMPONENT_TEMPERATURES
|
|
|
|
};
|
2022-02-14 13:49:12 +01:00
|
|
|
|
2022-05-19 00:40:42 +02:00
|
|
|
enum PoolIds : lp_id_t {
|
|
|
|
SENSOR_PLOC_HEATSPREADER,
|
|
|
|
SENSOR_PLOC_MISSIONBOARD,
|
|
|
|
SENSOR_4K_CAMERA,
|
|
|
|
SENSOR_DAC_HEATSPREADER,
|
|
|
|
SENSOR_STARTRACKER,
|
|
|
|
SENSOR_RW1,
|
|
|
|
SENSOR_DRO,
|
|
|
|
SENSOR_SCEX,
|
|
|
|
SENSOR_X8,
|
|
|
|
SENSOR_HPA,
|
|
|
|
SENSOR_TX_MODUL,
|
|
|
|
SENSOR_MPA,
|
|
|
|
SENSOR_ACU,
|
|
|
|
SENSOR_PLPCDU_HEATSPREADER,
|
|
|
|
SENSOR_TCS_BOARD,
|
|
|
|
SENSOR_MAGNETTORQUER,
|
2022-05-23 00:37:49 +02:00
|
|
|
SENSOR_TMP1075_1,
|
|
|
|
SENSOR_TMP1075_2,
|
|
|
|
|
2022-05-24 16:52:21 +02:00
|
|
|
SUS_0_N_LOC_XFYFZM_PT_XF,
|
|
|
|
SUS_6_R_LOC_XFYBZM_PT_XF,
|
|
|
|
SUS_1_N_LOC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
TEMP_MGM_2_SIDE_B,
|
|
|
|
TEMP_ADC_PAYLOAD_PCDU
|
2022-05-19 00:40:42 +02:00
|
|
|
};
|
2022-02-14 13:49:12 +01:00
|
|
|
|
2022-06-01 10:48:18 +02:00
|
|
|
static const uint8_t ENTRIES_SENSOR_TEMPERATURE_SET = 18;
|
|
|
|
static const uint8_t ENTRIES_DEVICE_TEMPERATURE_SET = 25;
|
2022-06-01 13:08:34 +02:00
|
|
|
static const uint8_t ENTRIES_SUS_TEMPERATURE_SET = 12;
|
2022-06-01 10:48:18 +02:00
|
|
|
|
2022-02-14 13:49:12 +01:00
|
|
|
/**
|
|
|
|
* @brief This dataset can be used to store the collected temperatures of all temperature sensors
|
|
|
|
*/
|
2022-06-01 10:48:18 +02:00
|
|
|
class SensorTemperatures : public StaticLocalDataSet<ENTRIES_SENSOR_TEMPERATURE_SET> {
|
2022-02-14 13:49:12 +01:00
|
|
|
public:
|
|
|
|
SensorTemperatures(HasLocalDataPoolIF* owner) : StaticLocalDataSet(owner, SENSOR_TEMPERATURES) {}
|
|
|
|
|
|
|
|
SensorTemperatures(object_id_t objectId)
|
|
|
|
: StaticLocalDataSet(sid_t(objectId, SENSOR_TEMPERATURES)) {}
|
|
|
|
|
2022-05-24 16:52:21 +02:00
|
|
|
lp_var_t<float> sensor_ploc_heatspreader =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SENSOR_PLOC_HEATSPREADER, this);
|
|
|
|
lp_var_t<float> sensor_ploc_missionboard =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SENSOR_PLOC_MISSIONBOARD, this);
|
2022-05-19 00:40:42 +02:00
|
|
|
lp_var_t<float> sensor_4k_camera = lp_var_t<float>(sid.objectId, PoolIds::SENSOR_4K_CAMERA, this);
|
2022-05-24 16:52:21 +02:00
|
|
|
lp_var_t<float> sensor_dac_heatspreader =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SENSOR_DAC_HEATSPREADER, this);
|
|
|
|
lp_var_t<float> sensor_startracker =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SENSOR_STARTRACKER, this);
|
2022-05-19 00:40:42 +02:00
|
|
|
lp_var_t<float> sensor_rw1 = lp_var_t<float>(sid.objectId, PoolIds::SENSOR_RW1, this);
|
|
|
|
lp_var_t<float> sensor_dro = lp_var_t<float>(sid.objectId, PoolIds::SENSOR_DRO, this);
|
|
|
|
lp_var_t<float> sensor_scex = lp_var_t<float>(sid.objectId, PoolIds::SENSOR_SCEX, this);
|
|
|
|
lp_var_t<float> sensor_x8 = lp_var_t<float>(sid.objectId, PoolIds::SENSOR_X8, this);
|
|
|
|
lp_var_t<float> sensor_hpa = lp_var_t<float>(sid.objectId, PoolIds::SENSOR_HPA, this);
|
|
|
|
lp_var_t<float> sensor_tx_modul = lp_var_t<float>(sid.objectId, PoolIds::SENSOR_TX_MODUL, this);
|
|
|
|
lp_var_t<float> sensor_mpa = lp_var_t<float>(sid.objectId, PoolIds::SENSOR_MPA, this);
|
|
|
|
lp_var_t<float> sensor_acu = lp_var_t<float>(sid.objectId, PoolIds::SENSOR_ACU, this);
|
2022-05-24 16:52:21 +02:00
|
|
|
lp_var_t<float> sensor_plpcdu_heatspreader =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SENSOR_PLPCDU_HEATSPREADER, this);
|
2022-05-19 00:40:42 +02:00
|
|
|
lp_var_t<float> sensor_tcs_board = lp_var_t<float>(sid.objectId, PoolIds::SENSOR_TCS_BOARD, this);
|
2022-05-24 16:52:21 +02:00
|
|
|
lp_var_t<float> sensor_magnettorquer =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SENSOR_MAGNETTORQUER, this);
|
2022-05-23 00:37:49 +02:00
|
|
|
lp_var_t<float> sensor_tmp1075_1 = lp_var_t<float>(sid.objectId, PoolIds::SENSOR_TMP1075_1, this);
|
|
|
|
lp_var_t<float> sensor_tmp1075_2 = lp_var_t<float>(sid.objectId, PoolIds::SENSOR_TMP1075_2, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2022-05-24 16:52:21 +02:00
|
|
|
* @brief This dataset can be used to store the collected temperatures of all device temperature
|
2022-06-01 10:48:18 +02:00
|
|
|
* sensors
|
2022-05-23 00:37:49 +02:00
|
|
|
*/
|
2022-06-01 10:48:18 +02:00
|
|
|
class DeviceTemperatures : public StaticLocalDataSet<ENTRIES_DEVICE_TEMPERATURE_SET> {
|
2022-05-23 00:37:49 +02:00
|
|
|
public:
|
2022-06-01 10:48:18 +02:00
|
|
|
DeviceTemperatures(HasLocalDataPoolIF* owner) : StaticLocalDataSet(owner, DEVICE_TEMPERATURES) {}
|
2022-05-23 00:37:49 +02:00
|
|
|
|
|
|
|
DeviceTemperatures(object_id_t objectId)
|
|
|
|
: StaticLocalDataSet(sid_t(objectId, DEVICE_TEMPERATURES)) {}
|
2022-05-31 16:44:57 +02:00
|
|
|
|
2022-06-01 10:48:18 +02:00
|
|
|
lp_var_t<float> q7s = lp_var_t<float>(sid.objectId, PoolIds::TEMP_Q7S, this);
|
2022-06-01 18:46:22 +02:00
|
|
|
lp_var_t<int16_t> batteryTemp1 = lp_var_t<int16_t>(sid.objectId, PoolIds::BATTERY_TEMP_1, this);
|
|
|
|
lp_var_t<int16_t> batteryTemp2 = lp_var_t<int16_t>(sid.objectId, PoolIds::BATTERY_TEMP_2, this);
|
|
|
|
lp_var_t<int16_t> batteryTemp3 = lp_var_t<int16_t>(sid.objectId, PoolIds::BATTERY_TEMP_3, this);
|
|
|
|
lp_var_t<int16_t> batteryTemp4 = lp_var_t<int16_t>(sid.objectId, PoolIds::BATTERY_TEMP_4, this);
|
2022-06-01 10:48:18 +02:00
|
|
|
lp_var_t<int32_t> rw1 = lp_var_t<int32_t>(sid.objectId, PoolIds::TEMP_RW1, this);
|
|
|
|
lp_var_t<int32_t> rw2 = lp_var_t<int32_t>(sid.objectId, PoolIds::TEMP_RW2, this);
|
|
|
|
lp_var_t<int32_t> rw3 = lp_var_t<int32_t>(sid.objectId, PoolIds::TEMP_RW3, this);
|
|
|
|
lp_var_t<int32_t> rw4 = lp_var_t<int32_t>(sid.objectId, PoolIds::TEMP_RW4, this);
|
|
|
|
lp_var_t<float> startracker = lp_var_t<float>(sid.objectId, PoolIds::TEMP_STAR_TRACKER, this);
|
2022-06-01 18:46:22 +02:00
|
|
|
lp_var_t<uint16_t> syrlinksPowerAmplifier =
|
|
|
|
lp_var_t<uint16_t>(sid.objectId, PoolIds::TEMP_SYRLINKS_POWER_AMPLIFIER, this);
|
|
|
|
lp_var_t<uint16_t> syrlinksBasebandBoard =
|
|
|
|
lp_var_t<uint16_t>(sid.objectId, PoolIds::TEMP_SYRLINKS_BASEBAND_BOARD, this);
|
|
|
|
lp_var_t<uint16_t> mgt = lp_var_t<uint16_t>(sid.objectId, PoolIds::TEMP_MGT, this);
|
2022-06-03 09:33:08 +02:00
|
|
|
lp_vec_t<float, 3> acu = lp_vec_t<float, 3>(sid.objectId, PoolIds::TEMP_ACU, this);
|
|
|
|
lp_var_t<float> pdu1 = lp_var_t<float>(sid.objectId, PoolIds::TEMP_PDU1, this);
|
|
|
|
lp_var_t<float> pdu2 = lp_var_t<float>(sid.objectId, PoolIds::TEMP_PDU2, this);
|
|
|
|
lp_var_t<float> temp1P60dock = lp_var_t<float>(sid.objectId, PoolIds::TEMP_1_P60DOCK, this);
|
|
|
|
lp_var_t<float> temp2P60dock = lp_var_t<float>(sid.objectId, PoolIds::TEMP_2_P60DOCK, this);
|
2022-06-01 10:48:18 +02:00
|
|
|
lp_var_t<float> gyro0SideA = lp_var_t<float>(sid.objectId, PoolIds::TEMP_GYRO_0_SIDE_A, this);
|
|
|
|
lp_var_t<float> gyro1SideA = lp_var_t<float>(sid.objectId, PoolIds::TEMP_GYRO_1_SIDE_A, this);
|
|
|
|
lp_var_t<float> gyro2SideB = lp_var_t<float>(sid.objectId, PoolIds::TEMP_GYRO_2_SIDE_B, this);
|
|
|
|
lp_var_t<float> gyro3SideB = lp_var_t<float>(sid.objectId, PoolIds::TEMP_GYRO_3_SIDE_B, this);
|
|
|
|
lp_var_t<float> mgm0SideA = lp_var_t<float>(sid.objectId, PoolIds::TEMP_MGM_0_SIDE_A, this);
|
|
|
|
lp_var_t<float> mgm2SideB = lp_var_t<float>(sid.objectId, PoolIds::TEMP_MGM_2_SIDE_B, this);
|
|
|
|
lp_var_t<float> adcPayloadPcdu =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::TEMP_ADC_PAYLOAD_PCDU, this);
|
2022-05-23 00:37:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2022-05-24 16:52:21 +02:00
|
|
|
* @brief This dataset can be used to store the collected temperatures of all SUS temperature
|
|
|
|
* sensors
|
2022-05-23 00:37:49 +02:00
|
|
|
*/
|
2022-06-01 13:08:34 +02:00
|
|
|
class SusTemperatures : public StaticLocalDataSet<ENTRIES_SUS_TEMPERATURE_SET> {
|
2022-05-23 00:37:49 +02:00
|
|
|
public:
|
2022-05-24 16:52:21 +02:00
|
|
|
SusTemperatures(HasLocalDataPoolIF* owner) : StaticLocalDataSet(owner, SUS_TEMPERATURES) {}
|
2022-05-23 00:37:49 +02:00
|
|
|
|
|
|
|
SusTemperatures(object_id_t objectId)
|
2022-06-01 10:48:18 +02:00
|
|
|
: StaticLocalDataSet(sid_t(objectId, SUS_TEMPERATURES)) {}
|
2022-05-24 16:52:21 +02:00
|
|
|
|
|
|
|
lp_var_t<float> sus_0_n_loc_xfyfzm_pt_xf =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SUS_0_N_LOC_XFYFZM_PT_XF, this);
|
|
|
|
lp_var_t<float> sus_6_r_loc_xfybzm_pt_xf =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SUS_6_R_LOC_XFYBZM_PT_XF, this);
|
|
|
|
lp_var_t<float> sus_1_n_loc_xbyfzm_pt_xb =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SUS_1_N_LOC_XBYFZM_PT_XB, this);
|
|
|
|
lp_var_t<float> sus_7_r_loc_xbybzm_pt_xb =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SUS_7_R_LOC_XBYBZM_PT_XB, this);
|
|
|
|
lp_var_t<float> sus_2_n_loc_xfybzb_pt_yb =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SUS_2_N_LOC_XFYBZB_PT_YB, this);
|
|
|
|
lp_var_t<float> sus_8_r_loc_xbybzb_pt_yb =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SUS_8_R_LOC_XBYBZB_PT_YB, this);
|
|
|
|
lp_var_t<float> sus_3_n_loc_xfybzf_pt_yf =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SUS_3_N_LOC_XFYBZF_PT_YF, this);
|
|
|
|
lp_var_t<float> sus_9_r_loc_xbybzb_pt_yf =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SUS_9_R_LOC_XBYBZB_PT_YF, this);
|
|
|
|
lp_var_t<float> sus_4_n_loc_xmyfzf_pt_zf =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SUS_4_N_LOC_XMYFZF_PT_ZF, this);
|
|
|
|
lp_var_t<float> sus_10_n_loc_xmybzf_pt_zf =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SUS_10_N_LOC_XMYBZF_PT_ZF, this);
|
|
|
|
lp_var_t<float> sus_5_n_loc_xfymzb_pt_zb =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SUS_5_N_LOC_XFYMZB_PT_ZB, this);
|
|
|
|
lp_var_t<float> sus_11_r_loc_xbymzb_pt_zb =
|
|
|
|
lp_var_t<float>(sid.objectId, PoolIds::SUS_11_R_LOC_XBYMZB_PT_ZB, this);
|
2022-02-14 13:49:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This dataset can be used to store the collected temperatures of all components
|
|
|
|
*/
|
|
|
|
class ComponentTemperatures : public StaticLocalDataSet<2> {
|
|
|
|
public:
|
|
|
|
ComponentTemperatures(HasLocalDataPoolIF* owner)
|
2022-05-19 00:40:42 +02:00
|
|
|
: StaticLocalDataSet(owner, COMPONENT_TEMPERATURES) {}
|
2022-02-14 13:49:12 +01:00
|
|
|
|
|
|
|
ComponentTemperatures(object_id_t objectId)
|
2022-05-19 00:40:42 +02:00
|
|
|
: StaticLocalDataSet(sid_t(objectId, COMPONENT_TEMPERATURES)) {}
|
2022-02-14 13:49:12 +01:00
|
|
|
|
|
|
|
lp_var_t<float> rw = lp_var_t<float>(sid.objectId, PoolIds::COMPONENT_RW, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace thermalControllerDefinitions
|
|
|
|
|
2022-05-31 16:44:57 +02:00
|
|
|
#endif /* MISSION_CONTROLLER_CONTROLLERDEFINITIONS_THERMALCONTROLLERDEFINITIONS_H_ */
|