Closed DRracer closed 1 year ago
rebased onto main
vsense is still not handled. Irun has a max value of 31. We can incorporate vsense into the "setCurrent" value by doing the following when sending the current values to the driver:
if irun <32:
vsense = 1
else:
vsense = 0
irun >>= 1
ihold >>= 1
With this we could avoid defining vsense entirely in the config since that could be part of irun/ihold, so it could save some flash/ram.
Several issues addressed in this PR:
MMU-70