aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-02-14 13:00:18 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-02-24 00:49:47 -0500
commit80c8bd8b4db39266e72694a1c8348ada51d1efe2 (patch)
treefcc129655a6374cdd21fdf25882a28f00bb48eda /test
parent9e8077009e4e0be51ebc064f587d74ca1e945975 (diff)
downloadkutter-80c8bd8b4db39266e72694a1c8348ada51d1efe2.tar.gz
kutter-80c8bd8b4db39266e72694a1c8348ada51d1efe2.tar.xz
kutter-80c8bd8b4db39266e72694a1c8348ada51d1efe2.zip
bed_screws: Add a helper tool for leveling bed screws
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'test')
-rw-r--r--test/klippy/bed_screws.cfg50
-rw-r--r--test/klippy/bed_screws.test49
2 files changed, 99 insertions, 0 deletions
diff --git a/test/klippy/bed_screws.cfg b/test/klippy/bed_screws.cfg
new file mode 100644
index 00000000..5033e317
--- /dev/null
+++ b/test/klippy/bed_screws.cfg
@@ -0,0 +1,50 @@
+# Test config for bed screws tool
+[stepper_x]
+step_pin: ar54
+dir_pin: ar55
+enable_pin: !ar38
+step_distance: .0125
+endstop_pin: ^ar3
+position_endstop: 0
+position_max: 200
+homing_speed: 50
+
+[stepper_y]
+step_pin: ar60
+dir_pin: !ar61
+enable_pin: !ar56
+step_distance: .0125
+endstop_pin: ^ar14
+position_endstop: 0
+position_max: 200
+homing_speed: 50
+
+[stepper_z]
+step_pin: ar46
+dir_pin: ar48
+enable_pin: !ar62
+step_distance: .0025
+endstop_pin: ^ar18
+position_endstop: 0.5
+position_max: 200
+
+[bed_screws]
+screw1: 100,50
+screw1_name: Front right
+screw1_fine_adjust: 200,50
+screw2: 75,75
+screw2_fine_adjust: 200,75
+screw3: 75,75
+screw3_name: Last
+screw3_fine_adjust: 75,90
+
+[mcu]
+serial: /dev/ttyACM0
+pin_map: arduino
+
+[printer]
+kinematics: cartesian
+max_velocity: 300
+max_accel: 3000
+max_z_velocity: 5
+max_z_accel: 100
diff --git a/test/klippy/bed_screws.test b/test/klippy/bed_screws.test
new file mode 100644
index 00000000..53fa2cb1
--- /dev/null
+++ b/test/klippy/bed_screws.test
@@ -0,0 +1,49 @@
+# Test case for bed screws helper tool
+CONFIG bed_screws.cfg
+DICTIONARY atmega2560-16mhz.dict
+
+# Start helper script and then abort it
+G28
+BED_SCREWS_ADJUST
+
+ACCEPT
+ACCEPT
+ABORT
+
+# Start helper script and run until success
+BED_SCREWS_ADJUST
+
+ACCEPT
+ACCEPT
+ACCEPT
+
+ACCEPT
+ACCEPT
+ACCEPT
+
+# Start helper script and run with two readjusts
+BED_SCREWS_ADJUST
+
+ACCEPT
+ADJUSTED
+ACCEPT
+
+ACCEPT
+ACCEPT
+ACCEPT
+
+ADJUSTED
+ACCEPT
+ACCEPT
+
+ACCEPT
+ACCEPT
+ACCEPT
+
+ACCEPT
+ACCEPT
+ACCEPT
+
+# Start helper script and run with two readjusts
+BED_SCREWS_ADJUST
+ABORT