aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-01-05 20:19:43 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-12-18 10:30:32 -0500
commit7dcc778b6c25a4956cbf0180423eeb3e450e1243 (patch)
treec66610b89967662f335c36a6a770038d3bfa1a0c /test
parent4a41d228eb8e486919587c9f7e4f79c934572529 (diff)
downloadkutter-7dcc778b6c25a4956cbf0180423eeb3e450e1243.tar.gz
kutter-7dcc778b6c25a4956cbf0180423eeb3e450e1243.tar.xz
kutter-7dcc778b6c25a4956cbf0180423eeb3e450e1243.zip
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>
Diffstat (limited to 'test')
-rw-r--r--test/klippy/rotary_delta_calibrate.cfg9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/klippy/rotary_delta_calibrate.cfg b/test/klippy/rotary_delta_calibrate.cfg
index ff42ff09..6709ce90 100644
--- a/test/klippy/rotary_delta_calibrate.cfg
+++ b/test/klippy/rotary_delta_calibrate.cfg
@@ -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]