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

@@ -11,9 +11,9 @@ dir_pin: P8_26
enable_pin: !P9_41
step_distance: .0125
endstop_pin: ^P9_25
homing_speed: 50
position_endstop: 0
position_max: 200
homing_speed: 50
[stepper_y]
step_pin: P8_12
@@ -21,9 +21,9 @@ dir_pin: P8_19
enable_pin: !P9_41
step_distance: .0125
endstop_pin: ^P9_23
homing_speed: 50
position_endstop: 0
position_max: 200
homing_speed: 50
[stepper_z]
step_pin: P8_13
@@ -31,7 +31,6 @@ dir_pin: P8_14
enable_pin: !P9_41
step_distance: 0.00025
endstop_pin: ^P9_13
homing_speed: 5
position_endstop: 0
position_max: 200