prusa3d / Prusa-Firmware-MMU

Other
32 stars 15 forks source link

Fix and tune CutFilament + unit tests #246

Closed DRracer closed 1 year ago

DRracer commented 1 year ago

Several issues addressed in this PR:

MMU-70

DRracer commented 1 year ago

rebased onto main

leptun commented 1 year ago

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.