meggert
a0025030f1
Some checks failed
EIVE/eive-obsw/pipeline/pr-main There was a failure building this commit
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
#ifndef MISSION_CONTROLLER_CONTROLLERDEFINITIONS_POWERCTRLDEFINITIONS_H_
|
|
#define MISSION_CONTROLLER_CONTROLLERDEFINITIONS_POWERCTRLDEFINITIONS_H_
|
|
|
|
#include <fsfw/datapool/PoolReadGuard.h>
|
|
#include <fsfw/datapoollocal/StaticLocalDataSet.h>
|
|
#include <fsfw/datapoollocal/localPoolDefinitions.h>
|
|
#include <mission/power/defs.h>
|
|
|
|
#include <cstdint>
|
|
|
|
namespace pwrctrl {
|
|
|
|
enum SetIds : uint32_t { CORE_HK };
|
|
|
|
enum PoolIds : lp_id_t {
|
|
TOTAL_BATTERY_CURRENT,
|
|
OPEN_CIRCUIT_VOLTAGE_CHARGE,
|
|
COULOMB_COUNTER_CHARGE,
|
|
};
|
|
|
|
static constexpr uint8_t CORE_HK_ENTRIES = 3;
|
|
|
|
class CoreHk : public StaticLocalDataSet<CORE_HK_ENTRIES> {
|
|
public:
|
|
CoreHk(HasLocalDataPoolIF* hkOwner) : StaticLocalDataSet(hkOwner, CORE_HK) {}
|
|
|
|
lp_var_t<int16_t> totalBatteryCurrent =
|
|
lp_var_t<int16_t>(sid.objectId, TOTAL_BATTERY_CURRENT, this);
|
|
lp_var_t<float> openCircuitVoltageCharge =
|
|
lp_var_t<float>(sid.objectId, OPEN_CIRCUIT_VOLTAGE_CHARGE, this);
|
|
lp_var_t<float> coulombCounterCharge =
|
|
lp_var_t<float>(sid.objectId, COULOMB_COUNTER_CHARGE, this);
|
|
|
|
private:
|
|
};
|
|
|
|
} // namespace pwrctrl
|
|
|
|
#endif /* MISSION_CONTROLLER_CONTROLLERDEFINITIONS_POWERCTRLDEFINITIONS_H_ */
|