2022-08-15 10:50:19 +02:00
|
|
|
#ifndef MISSION_CONTROLLER_CONTROLLERDEFINITIONS_ACSCTRLDEFINITIONS_H_
|
|
|
|
#define MISSION_CONTROLLER_CONTROLLERDEFINITIONS_ACSCTRLDEFINITIONS_H_
|
|
|
|
|
|
|
|
#include <fsfw/datapoollocal/StaticLocalDataSet.h>
|
2022-08-15 17:25:16 +02:00
|
|
|
#include <fsfw/datapoollocal/localPoolDefinitions.h>
|
|
|
|
|
2022-08-15 10:50:19 +02:00
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
namespace acsctrl {
|
|
|
|
|
2022-08-15 17:25:16 +02:00
|
|
|
enum SetIds : uint32_t { MGM_SENSOR_DATA };
|
2022-08-15 10:50:19 +02:00
|
|
|
|
|
|
|
enum PoolIds : lp_id_t {
|
|
|
|
MGM_0_LIS3_UT,
|
|
|
|
MGM_1_RM3100_UT,
|
|
|
|
MGM_2_LIS3_UT,
|
|
|
|
MGM_3_RM3100_UT,
|
|
|
|
MGM_IMTQ_CAL_NT,
|
|
|
|
MGM_IMTQ_CAL_ACT_STATUS
|
|
|
|
};
|
|
|
|
|
2022-08-16 11:27:16 +02:00
|
|
|
static constexpr uint8_t MGM_SET_ENTRIES = 10;
|
2022-08-15 10:50:19 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This dataset can be used to store the collected temperatures of all temperature sensors
|
|
|
|
*/
|
|
|
|
class MgmData : public StaticLocalDataSet<MGM_SET_ENTRIES> {
|
2022-08-15 17:25:16 +02:00
|
|
|
public:
|
2022-08-15 10:50:19 +02:00
|
|
|
MgmData(HasLocalDataPoolIF* hkOwner) : StaticLocalDataSet(hkOwner, MGM_SENSOR_DATA) {}
|
|
|
|
|
|
|
|
// The ACS board measurement are in floating point uT
|
|
|
|
lp_vec_t<float, 3> mgm0Lis3 = lp_vec_t<float, 3>(sid.objectId, MGM_0_LIS3_UT, this);
|
|
|
|
lp_vec_t<float, 3> mgm1Rm3100 = lp_vec_t<float, 3>(sid.objectId, MGM_1_RM3100_UT, this);
|
|
|
|
lp_vec_t<float, 3> mgm2Lis3 = lp_vec_t<float, 3>(sid.objectId, MGM_2_LIS3_UT, this);
|
|
|
|
lp_vec_t<float, 3> mgm3Rm3100 = lp_vec_t<float, 3>(sid.objectId, MGM_3_RM3100_UT, this);
|
|
|
|
// The IMTQ measurements are in integer nT
|
|
|
|
lp_vec_t<int32_t, 3> imtqCal = lp_vec_t<int32_t, 3>(sid.objectId, MGM_IMTQ_CAL_NT, this);
|
2022-08-15 17:25:16 +02:00
|
|
|
lp_var_t<uint8_t> actuationCalStatus =
|
|
|
|
lp_var_t<uint8_t>(sid.objectId, MGM_IMTQ_CAL_ACT_STATUS, this);
|
2022-08-15 10:50:19 +02:00
|
|
|
|
2022-08-15 17:25:16 +02:00
|
|
|
private:
|
2022-08-15 10:50:19 +02:00
|
|
|
};
|
|
|
|
|
2022-08-15 17:25:16 +02:00
|
|
|
} // namespace acsctrl
|
2022-08-15 10:50:19 +02:00
|
|
|
|
|
|
|
#endif /* MISSION_CONTROLLER_CONTROLLERDEFINITIONS_ACSCTRLDEFINITIONS_H_ */
|