Voltage replaced by DcBus ptr in PowerPort class

Preparation to separate current and voltage measurements and control
parameters into DcBus and PowerPort classes. This will help to
manage current from different sources (grid, solar) going towards
one bus and control the battery voltage. It will also help to align
multiple charge controllers in parallel, communicating via CAN bus.
This commit is contained in:
Martin Jaeger
2020-02-07 11:55:51 +01:00
parent 86bfce8a0c
commit f0e99cd80f
21 changed files with 214 additions and 180 deletions
+2 -2
View File
@@ -207,11 +207,11 @@ const data_object_t data_objects[] = {
TS_OUTPUT, TS_READ_ALL),
// battery related data objects
TS_DATA_OBJ_FLOAT(0x70, "Bat_V", &bat_terminal.voltage, 2,
TS_DATA_OBJ_FLOAT(0x70, "Bat_V", &bat_terminal.bus->voltage, 2,
TS_OUTPUT, TS_READ_ALL),
#if CONFIG_HV_TERMINAL_SOLAR || CONFIG_LV_TERMINAL_SOLAR || CONFIG_PWM_TERMINAL_SOLAR
TS_DATA_OBJ_FLOAT(0x71, "Solar_V", &solar_terminal.voltage, 2,
TS_DATA_OBJ_FLOAT(0x71, "Solar_V", &solar_terminal.bus->voltage, 2,
TS_OUTPUT, TS_READ_ALL),
#endif