Add shunts to data layer

This commit is contained in:
Steven Maresca 2024-06-23 14:53:03 -04:00
parent 205eb54b11
commit 8d36cdc428

View file

@ -103,6 +103,13 @@ typedef struct {
DATALAYER_BATTERY_SETTINGS_TYPE settings;
} DATALAYER_BATTERY_TYPE;
typedef struct {
/** measured voltage in deciVolts. 4200 = 420.0 V */
uint16_t measured_voltage_dV = 0;
/** measured amperage in deciAmperes. 300 = 30.0 A */
uint16_t measured_amperage_dA = 0;
} DATALAYER_SHUNT_TYPE;
typedef struct {
// TODO
} DATALAYER_SYSTEM_INFO_TYPE;
@ -170,6 +177,7 @@ typedef struct {
class DataLayer {
public:
DATALAYER_BATTERY_TYPE battery;
DATALAYER_SHUNT_TYPE shunt;
DATALAYER_SYSTEM_TYPE system;
};