fl4p / fugu-mppt-firmware

An open source Arduino ESP32 MPPT Charger firmware equipped with charging algorithms, WiFi, LCD menus & more!
Apache License 2.0
21 stars 5 forks source link

computePwmMaxLs #1

Closed fl4p closed 1 year ago

fl4p commented 1 year ago

without limiting pwmMaxLs <= pwmHS, there can be negative current flow. Explain why?

pwmMaxLs = std::min<float>(pwmMaxLs, (float)pwmHS); // TODO explain why this is necessary