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:
Kevin O'Connor 2016-11-08 10:39:32 -05:00
parent 5e6127869a
commit afecf7ce36
5 changed files with 14 additions and 14 deletions

View file

@ -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