toolhead: Split toolhead code from cartesian.py to new file toolhead.py

Separate out the toolhead logic to its own python file.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2016-07-07 15:52:44 -04:00
parent 861f5a5387
commit e0a9a1b800
3 changed files with 205 additions and 197 deletions

View file

@ -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, cartesian, util, mcu, fan, heater, reactor
import gcode, toolhead, util, mcu, fan, heater, reactor
class ConfigWrapper:
def __init__(self, printer, section):
@ -58,7 +58,7 @@ class Printer:
if self.fileconfig.has_section('heater_bed'):
self.objects['heater_bed'] = heater.PrinterHeater(
self, ConfigWrapper(self, 'heater_bed'))
self.objects['toolhead'] = cartesian.ToolHead(
self.objects['toolhead'] = toolhead.ToolHead(
self, self._pconfig)
def stats(self, eventtime):