stepper: Use a sane default for homing_positive_dir

Use the endstop position to determine a sane default for
homing_positive_dir.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2017-07-24 14:12:17 -04:00
parent 143b7cccf4
commit 981c53682f
9 changed files with 46 additions and 42 deletions

View File

@@ -15,9 +15,9 @@ dir_pin: ar55
enable_pin: !ar38
step_distance: .01
endstop_pin: ^ar3
homing_speed: 50.0
position_endstop: 0
position_max: 200
homing_speed: 50
# The stepper_y section is used to describe the Y axis as well as the
# stepper controlling the X-Y movement.
@@ -27,9 +27,9 @@ dir_pin: ar61
enable_pin: !ar56
step_distance: .01
endstop_pin: ^ar14
homing_speed: 50.0
position_endstop: 0
position_max: 200
homing_speed: 50
[stepper_z]
step_pin: ar46