mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-15 12:49:55 +01: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:
@@ -3,7 +3,8 @@
|
||||
step_pin: ar54
|
||||
dir_pin: ar55
|
||||
enable_pin: !ar38
|
||||
step_distance: 0.000010
|
||||
microsteps: 16
|
||||
gear_ratio: 107.000:16, 60:16
|
||||
endstop_pin: ^ar2
|
||||
homing_speed: 50
|
||||
#position_endstop: 252
|
||||
@@ -14,14 +15,16 @@ lower_arm_length: 320.000
|
||||
step_pin: ar60
|
||||
dir_pin: ar61
|
||||
enable_pin: !ar56
|
||||
step_distance: 0.000010
|
||||
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.000010
|
||||
microsteps: 16
|
||||
gear_ratio: 107.000:16, 60:16
|
||||
endstop_pin: ^ar19
|
||||
|
||||
[mcu]
|
||||
|
||||
Reference in New Issue
Block a user