mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-08 22:35:17 -06:00
stepper: Calculate step_distance from rotation_distance
Add support for automatically calculating the internal step_distance from new config parameters - rotation_distance, microsteps, full_steps_per_rotation, and gear_ratio. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
4a41d228eb
commit
7dcc778b6c
11 changed files with 128 additions and 60 deletions
|
@ -10,7 +10,8 @@
|
|||
step_pin: ar54
|
||||
dir_pin: ar55
|
||||
enable_pin: !ar38
|
||||
step_distance: 0.001963495
|
||||
microsteps: 16
|
||||
gear_ratio: 107.000:16, 60:16
|
||||
endstop_pin: ^ar2
|
||||
homing_speed: 50
|
||||
position_endstop: 252
|
||||
|
@ -21,14 +22,16 @@ lower_arm_length: 320.000
|
|||
step_pin: ar60
|
||||
dir_pin: ar61
|
||||
enable_pin: !ar56
|
||||
step_distance: 0.001963495
|
||||
microsteps: 16
|
||||
gear_ratio: 107.000:16, 60:16
|
||||
endstop_pin: ^ar15
|
||||
|
||||
[stepper_c]
|
||||
step_pin: ar46
|
||||
dir_pin: ar48
|
||||
enable_pin: !ar62
|
||||
step_distance: 0.001963495
|
||||
microsteps: 16
|
||||
gear_ratio: 107.000:16, 60:16
|
||||
endstop_pin: ^ar19
|
||||
|
||||
[extruder]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue