aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/force_move.py
Commit message (Collapse)AuthorAgeFilesLines
* stepper: Track if using units of radians instead of millimetersKevin O'Connor2020-01-061-3/+9
| | | | | | | | The STEPPER_BUZZ command needs to know if the axis is using radians instead of millimeters so that it can move a more appropriate distance. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* force_move: Make sure to flush step generation queue after each moveKevin O'Connor2019-11-241-2/+3
| | | | | | | Add toolhead.note_kinematic_activity() call and use it to force the step generation to be flushed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Rename _full_flush() to flush_step_generation() and use globallyKevin O'Connor2019-11-211-1/+2
| | | | | | | Update code that modifies the low-level kinematics handlers to first call toolhead.flush_step_generation(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Move MCU_stepper from mcu.py to stepper.pyKevin O'Connor2019-11-121-3/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper_enable: Move enable tracking from stepper.py to stepper_enable.pyKevin O'Connor2019-11-121-3/+5
| | | | | | | Move the enable line tracking out of the main stepper.py code. This simplifies the main kinematic code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Calculate and store axes_r in move classKevin O'Connor2019-11-061-5/+8
| | | | | | | | Calculate the ratio of axis distance to total move distance (axis_d / move_d) and store in a new member variable axes_r. This avoids needing to recalculate the value in other code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* trapq: Remove move_fill()Kevin O'Connor2019-11-061-6/+3
| | | | | | | Now that all callers use the trapq system to queue moves, it is no longer necessary to individually allocate and fill a 'struct move'. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Remove set_ignore_move()Kevin O'Connor2019-11-061-8/+5
| | | | | | | Update callers of set_ignore_move() to use the trapq system to set a stepper to ignore moves. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* force_move: Convert step generation to use trapq systemKevin O'Connor2019-11-061-2/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* force_move: Avoid divide by zero in move time calculationKevin O'Connor2019-03-311-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* manual_stepper: Add support for moves with accelerationKevin O'Connor2019-03-031-9/+23
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* force_move: Provide defaults for SET_KINEMATIC_POSITION parametersKevin O'Connor2018-08-021-4/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* force_move: Add support for FORCE_MOVE commandKevin O'Connor2018-07-261-5/+34
| | | | | | | Add initial support for commands that will forcibly move a stepper (without updating the kinematic classes with the new position). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* force_move: Simplify STEPPER_BUZZ codeKevin O'Connor2018-07-261-26/+35
| | | | | | | Separate the setup and movement parts of cmd_STEPPER_BUZZ() into their own functions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* force_move: Rename stepper_buzz.py to force_move.pyKevin O'Connor2018-07-261-0/+65
This is in preparation for extending the ability to make manual moves. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>