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:
+3
-3
@@ -16,10 +16,10 @@
|
||||
|
||||
#include "power_port.h"
|
||||
|
||||
void PowerPort::init_solar(float max_abs_current)
|
||||
void PowerPort::init_solar()
|
||||
{
|
||||
dis_current_limit = -max_abs_current;
|
||||
chg_current_limit = 0; // no current towards solar panel allowed
|
||||
dis_current_limit = -50; // derating based on max. DC/DC or PWM switch current only
|
||||
chg_current_limit = 0; // no current towards solar panel allowed
|
||||
|
||||
// also initialize the connected bus
|
||||
bus->dis_voltage_start = 16.0;
|
||||
|
||||
Reference in New Issue
Block a user