Based on what Ive heard here I can probably make my code much simplier.
I found this code in the firmware for pushing a button and turning off the charger to disconnect the car:
Timer1.setPwmDuty(pin_PWM, PWM_res); // this should produce a steady +12V signal on a pilot pin
So what I would do...