mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Add shunts to data layer
This commit is contained in:
parent
205eb54b11
commit
8d36cdc428
1 changed files with 8 additions and 0 deletions
|
@ -103,6 +103,13 @@ typedef struct {
|
||||||
DATALAYER_BATTERY_SETTINGS_TYPE settings;
|
DATALAYER_BATTERY_SETTINGS_TYPE settings;
|
||||||
} DATALAYER_BATTERY_TYPE;
|
} 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 {
|
typedef struct {
|
||||||
// TODO
|
// TODO
|
||||||
} DATALAYER_SYSTEM_INFO_TYPE;
|
} DATALAYER_SYSTEM_INFO_TYPE;
|
||||||
|
@ -170,6 +177,7 @@ typedef struct {
|
||||||
class DataLayer {
|
class DataLayer {
|
||||||
public:
|
public:
|
||||||
DATALAYER_BATTERY_TYPE battery;
|
DATALAYER_BATTERY_TYPE battery;
|
||||||
|
DATALAYER_SHUNT_TYPE shunt;
|
||||||
DATALAYER_SYSTEM_TYPE system;
|
DATALAYER_SYSTEM_TYPE system;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue