Hi,
I am using a VESC controller on an e-bike with only a hand throttle input. have a PID set up to automatically brake when the throttle is released.
The trike is used for short runs, then rests for extended periods. I don't want to bother with switching on/off the key, as it is unnecessary and a nuisance. The system works fine with the exception that the battery life is less than ideal, due to the controller not shutting down.
After some research, I was able to turn off the PID controller after a period of inactivity using (set-current 0) in a LispBM script. Looking at the live display I can see that the D/Q current goes to zero, but the voltage and duty cycle are non-zero.
Does this mean that gate drivers are still active? is there a way to fully disable the FET output via software? What else can I do to minimize quiescant current?

For reference, here's the script: