Integrate current
The current counter on the shunt can't be activated for some reason.
This commit is contained in:
@ -10,16 +10,17 @@
|
||||
#define SHUNT_THRESH_OVERTEMP 1000 // 1/10 °C
|
||||
|
||||
typedef struct {
|
||||
int32_t current;
|
||||
int32_t voltage_bat;
|
||||
int32_t voltage_veh;
|
||||
int32_t voltage3;
|
||||
int32_t current; // mA
|
||||
int32_t voltage_bat; // mV
|
||||
int32_t voltage_veh; // mV
|
||||
int32_t voltage3; // mV
|
||||
int32_t busbartemp;
|
||||
int32_t power;
|
||||
int32_t energy;
|
||||
int32_t current_counter;
|
||||
float current_counter; // mAs
|
||||
|
||||
uint32_t last_message;
|
||||
uint32_t last_current_message;
|
||||
} ShuntData;
|
||||
extern ShuntData shunt_data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user