basics
Some checks failed
EIVE/eive-obsw/pipeline/pr-main There was a failure building this commit

This commit is contained in:
2023-07-26 17:01:48 +02:00
parent 8c97ad0213
commit 88a8969142
4 changed files with 163 additions and 6 deletions

View File

@ -11,16 +11,22 @@ namespace pwrctrl {
enum SetIds : uint32_t { STATE_OF_CHARGE_DATA };
enum PoolIds : lp_id_t {
OPEN_CIRCUIT_VOLTAGE_CHARGE,
COULOMB_COUNTER_CHARGE,
};
static constexpr uint8_t STATE_OF_CHARGE_ENTRIES = 6;
static constexpr uint8_t STATE_OF_CHARGE_ENTRIES = 2;
class StateOfChargedData : public StaticLocalDataSet<STATE_OF_CHARGE_ENTRIES> {
public:
StateOfChargedData(HasLocalDataPoolIF* hkOwner)
: StaticLocalDataSet(hkOwner, STATE_OF_CHARGE_DATA) {}
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:
};