2023-07-26 11:18:15 +02:00
|
|
|
#ifndef MISSION_CONTROLLER_CONTROLLERDEFINITIONS_POWERCTRLDEFINITIONS_H_
|
|
|
|
#define MISSION_CONTROLLER_CONTROLLERDEFINITIONS_POWERCTRLDEFINITIONS_H_
|
|
|
|
|
|
|
|
#include <fsfw/datapoollocal/StaticLocalDataSet.h>
|
|
|
|
#include <fsfw/datapoollocal/localPoolDefinitions.h>
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
namespace pwrctrl {
|
|
|
|
|
|
|
|
enum SetIds : uint32_t { STATE_OF_CHARGE_DATA };
|
|
|
|
|
|
|
|
enum PoolIds : lp_id_t {
|
2023-07-26 17:01:48 +02:00
|
|
|
OPEN_CIRCUIT_VOLTAGE_CHARGE,
|
|
|
|
COULOMB_COUNTER_CHARGE,
|
2023-07-26 11:18:15 +02:00
|
|
|
};
|
|
|
|
|
2023-07-26 17:01:48 +02:00
|
|
|
static constexpr uint8_t STATE_OF_CHARGE_ENTRIES = 2;
|
2023-07-26 11:18:15 +02:00
|
|
|
|
|
|
|
class StateOfChargedData : public StaticLocalDataSet<STATE_OF_CHARGE_ENTRIES> {
|
|
|
|
public:
|
|
|
|
StateOfChargedData(HasLocalDataPoolIF* hkOwner)
|
|
|
|
: StaticLocalDataSet(hkOwner, STATE_OF_CHARGE_DATA) {}
|
|
|
|
|
2023-07-26 17:01:48 +02:00
|
|
|
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);
|
|
|
|
|
2023-07-26 11:18:15 +02:00
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace pwrctrl
|
|
|
|
|
|
|
|
#endif /* MISSION_CONTROLLER_CONTROLLERDEFINITIONS_POWERCTRLDEFINITIONS_H_ */
|