stepper: Default to a high direction pin meaning positive direction
Invert the default meaning of the stepper direction pin. Instead of treating a low value as position motion, treat a high value as positive motion. This matches what other firmwares do, and it matches what common stepper motor drivers document. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
[stepper_x]
|
||||
step_pin: ar29
|
||||
# Step GPIO pin (triggered high)
|
||||
dir_pin: ar28
|
||||
# Direction GPIO pin (low indicates positive direction)
|
||||
dir_pin: !ar28
|
||||
# Direction GPIO pin (high indicates positive direction)
|
||||
enable_pin: !ar25
|
||||
# Enable pin (default is enable high; use ! to indicate enable low)
|
||||
step_distance: .0225
|
||||
@@ -86,7 +86,7 @@ position_max: 200
|
||||
# stepper_x section
|
||||
[stepper_z]
|
||||
step_pin: ar23
|
||||
dir_pin: ar22
|
||||
dir_pin: !ar22
|
||||
enable_pin: !ar25
|
||||
step_distance: .005
|
||||
max_velocity: 250
|
||||
|
||||
Reference in New Issue
Block a user