diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-07-10 12:23:35 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-07-10 22:49:02 -0400 |
commit | af99ab164543bc5e1ee68ef35b1b6f42f06ca887 (patch) | |
tree | eff2482eb95523d99dd57e82fc1e767baf36c267 /klippy/cartesian.py | |
parent | 4a527a46cedaa4a7932ba5c1080b7133c69602cd (diff) | |
download | kutter-af99ab164543bc5e1ee68ef35b1b6f42f06ca887.tar.gz kutter-af99ab164543bc5e1ee68ef35b1b6f42f06ca887.tar.xz kutter-af99ab164543bc5e1ee68ef35b1b6f42f06ca887.zip |
extruder: Create a new class and python file to track the printer extruder
Create a new python file (extruder.py) to control the extruder heater
and stepper motors. This separates the extruder control logic from
the cartesian robot code - making it easier to customize both the
kinematic control of the robot as well as the extruder.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/cartesian.py')
-rw-r--r-- | klippy/cartesian.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/klippy/cartesian.py b/klippy/cartesian.py index 100ce220..b2bc1b43 100644 --- a/klippy/cartesian.py +++ b/klippy/cartesian.py @@ -6,14 +6,14 @@ import logging import stepper, homing -StepList = (0, 1, 2, 3) +StepList = (0, 1, 2) class CartKinematics: def __init__(self, printer, config): - steppers = ['stepper_x', 'stepper_y', 'stepper_z', 'stepper_e'] + steppers = ['stepper_x', 'stepper_y', 'stepper_z'] self.steppers = [stepper.PrinterStepper(printer, config.getsection(n)) for n in steppers] - self.stepper_pos = [0, 0, 0, 0] + self.stepper_pos = [0, 0, 0] def build_config(self): for stepper in self.steppers: stepper.build_config() @@ -31,9 +31,6 @@ class CartKinematics: accel_factor = min([self.steppers[i].max_accel / abs(axes_d[i]) for i in StepList if axes_d[i]]) return velocity_factor * move_d, accel_factor * move_d - def get_max_e_speed(self): - s = self.steppers[3] - return s.max_velocity, s.max_accel def home(self, toolhead, axis): # Each axis is homed independently and in order homing_state = homing.Homing(toolhead, self.steppers) # XXX |