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:
+2
-5
@@ -26,8 +26,8 @@ PowerPort dcdc_port_lv(&lv_bus); // internal low voltage side of DC/DC co
|
||||
PowerPort lv_terminal(&lv_bus); // low voltage terminal (battery for typical MPPT)
|
||||
PowerPort load_terminal(&lv_bus); // load terminal (also connected to lv_bus)
|
||||
|
||||
PowerPort *bat_terminal = NULL; // pointer to terminal where battery is connected
|
||||
PowerPort *solar_terminal = NULL; // pointer to above terminal where solar panel is connected
|
||||
PowerPort &bat_terminal = lv_terminal;
|
||||
PowerPort &solar_terminal = hv_terminal;
|
||||
|
||||
Dcdc dcdc(&dcdc_port_hv, &dcdc_port_lv, DCDC_MODE_INIT);
|
||||
|
||||
@@ -47,9 +47,6 @@ time_t timestamp; // current unix timestamp (independent of time(NULL), as it
|
||||
|
||||
int main()
|
||||
{
|
||||
bat_terminal = &lv_terminal;
|
||||
solar_terminal = &hv_terminal;
|
||||
|
||||
adc_tests();
|
||||
bat_charger_tests();
|
||||
dc_bus_tests();
|
||||
|
||||
Reference in New Issue
Block a user