PowerPort configuration for different charger types improved

- Solar and battery ports now defined as references to actual hardware ports at very beginning of main.cpp, allowing to use the references also in data_objects.cpp
- Different charger types (PWM / MPPT) are configured more clearly by switching on/off features (DC/DC, PWM switch and load) in PCB configuration
This commit is contained in:
Martin Jaeger
2019-10-20 17:44:32 +02:00
parent 0399c4e877
commit b5c7f396e1
25 changed files with 248 additions and 220 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
static void init_structs()
{
battery_conf_init(&bat_conf, BAT_TYPE_FLOODED, 6, 100);
battery_init_dc_bus(&lv_bus, &lv_terminal, &bat_conf, 1);
battery_init_dc_bus(&bat_terminal, &bat_conf, 1);
charger.state = CHG_STATE_IDLE;
}