stepper: Calculate step_distance from rotation_distance

Add support for automatically calculating the internal step_distance
from new config parameters - rotation_distance, microsteps,
full_steps_per_rotation, and gear_ratio.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2020-01-05 20:19:43 -05:00
parent 4a41d228eb
commit 7dcc778b6c
11 changed files with 128 additions and 60 deletions

View File

@@ -10,7 +10,8 @@
step_pin: ar54
dir_pin: ar55
enable_pin: !ar38
step_distance: 0.001963495
microsteps: 16
gear_ratio: 80:16
[stepper_arm]
step_pin: ar60