test: Add a test case for probe:z_virtual_endstop support

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-09-26 20:02:24 -04:00 committed by KevinOConnor
parent 1940ba7062
commit 9f755750d3
2 changed files with 97 additions and 0 deletions

View File

@ -0,0 +1,72 @@
# Test config for probe:z_virtual_endstop
[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: probe:z_virtual_endstop
position_max: 200
[extruder]
step_pin: ar26
dir_pin: ar28
enable_pin: !ar24
step_distance: .002
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: ar10
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog13
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 250
[heater_bed]
heater_pin: ar8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog14
control: watermark
min_temp: 0
max_temp: 130
[probe]
pin: ar9
z_offset: 1.15
[bed_mesh]
min_point: 10,10
max_point: 180,180
[mcu]
serial: /dev/ttyACM0
pin_map: arduino
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100

View File

@ -0,0 +1,25 @@
# Test case for probe:z_virtual_endstop support
CONFIG z_virtual_endstop.cfg
DICTIONARY atmega2560-16mhz.dict
# Start by homing the printer.
G28
G1 F6000
# Z / X / Y moves
G1 Z1
G1 X1
G1 Y1
# Run bed_mesh_calibrate
BED_MESH_CALIBRATE
# Move again
G1 Z5 X0 Y0
# Do regular probe
PROBE
QUERY_PROBE
# Move again
G1 Z9