Klipper3d / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
8.95k stars 5.16k forks source link

motion_report: Don't negate step_distance on steppers with inverted dir pin #6535

Closed KevinOConnor closed 2 months ago

KevinOConnor commented 2 months ago

When querying the stepper motion queue, the resulting "interval", "count", and "add" are already normalized to the correct direction. That is, the "count" field will be positive if moving in a positive axis direction and negative if moving in the reverse direction. So, negating the step_distance field just complicates the readers.

-Kevin