stepper: Have caller calculate max jerk velocity

Allow the owner of the stepper object to cacluate the maximum step
jerk velocity.  This is used to ensure there is no communication error
between mcu and host.

Disable checking of jerk velocity for extruder stepper motors.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2016-07-22 15:38:13 -04:00
parent d3c27c514f
commit 589017a3d6
3 changed files with 9 additions and 2 deletions

View file

@ -15,6 +15,8 @@ class CartKinematics:
for n in steppers]
self.stepper_pos = [0, 0, 0]
def build_config(self):
for stepper in self.steppers[:2]:
stepper.set_max_jerk(0.005 * stepper.max_accel) # XXX
for stepper in self.steppers:
stepper.build_config()
def set_position(self, newpos):