mirror of
https://github.com/andreili/klipper.git
synced 2025-08-24 03:44:06 +02:00
The existing code calculates the number of steps in a move and then spreads them out evenly throughout that move. Change the code so that step timing is based on where the head is commanded to be relative to the stepper step locations. This makes the timing more accurate - in particular the stepper velocities will be more accurate during cornering introduced by the lookahead code. It also results in slightly smoother stepper motion which results in better step compression. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>