The max_voltage parameter was some half baked idea about not closing the main contactor if the precharge voltage got too high. But it could be used for all sorts of things. The precharge circuit doesn't need to know the max voltage to work though. It's based on change in voltage over time. What it does is, if there has been ZERO change in voltage in the last second, and the voltage is sufficiently greater than zero, then the caps are full, so close main contactor.
|