aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/klippy.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-07-10 12:23:35 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-07-10 22:49:02 -0400
commitaf99ab164543bc5e1ee68ef35b1b6f42f06ca887 (patch)
treeeff2482eb95523d99dd57e82fc1e767baf36c267 /klippy/klippy.py
parent4a527a46cedaa4a7932ba5c1080b7133c69602cd (diff)
downloadkutter-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/klippy.py')
-rw-r--r--klippy/klippy.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py
index 421a6099..cb81364e 100644
--- a/klippy/klippy.py
+++ b/klippy/klippy.py
@@ -5,7 +5,7 @@
#
# This file may be distributed under the terms of the GNU GPLv3 license.
import sys, optparse, ConfigParser, logging, time, threading
-import gcode, toolhead, util, mcu, fan, heater, reactor
+import gcode, toolhead, util, mcu, fan, heater, extruder, reactor
class ConfigWrapper:
def __init__(self, printer, section):
@@ -52,9 +52,9 @@ class Printer:
if self.fileconfig.has_section('fan'):
self.objects['fan'] = fan.PrinterFan(
self, ConfigWrapper(self, 'fan'))
- if self.fileconfig.has_section('heater_nozzle'):
- self.objects['heater_nozzle'] = heater.PrinterHeater(
- self, ConfigWrapper(self, 'heater_nozzle'))
+ if self.fileconfig.has_section('extruder'):
+ self.objects['extruder'] = extruder.PrinterExtruder(
+ self, ConfigWrapper(self, 'extruder'))
if self.fileconfig.has_section('heater_bed'):
self.objects['heater_bed'] = heater.PrinterHeater(
self, ConfigWrapper(self, 'heater_bed'))