Hello Isaac! The precharge method that I ended up using is to wait until {Dvoltage/Dtime = 0} && {voltage >= 24v}. Basically, once the change in voltage was zero, since I was checking it every 0.1 seconds or so, and the overall voltage was nonzero, the caps must be full. If the mosfets were shorted, the voltage on the caps would have been almost zero, so the ">= 24v" woudl never have happened.
|