mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-06 05:24:02 -06:00
toolhead: Eliminate set_max_jerk() from kinematic classes
Allow the kinematic classes to query the max velocity, max accel, and max halt velocity from the toolhead class instead of having the toolhead class call into the kinematic classes with those values. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
0d13834293
commit
7a81bfc4a4
6 changed files with 53 additions and 45 deletions
|
@ -6,7 +6,7 @@
|
|||
# This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
import sys, optparse, ConfigParser, logging, time, threading
|
||||
import util, reactor, queuelogger, msgproto, gcode
|
||||
import pins, mcu, chipmisc, extruder, fan, heater, toolhead
|
||||
import pins, mcu, chipmisc, toolhead, extruder, fan, heater
|
||||
|
||||
message_ready = "Printer is ready"
|
||||
|
||||
|
@ -172,7 +172,7 @@ class Printer:
|
|||
ConfigLogger(self.fileconfig, self.bglogger)
|
||||
# Create printer components
|
||||
config = ConfigWrapper(self, 'printer')
|
||||
for m in [pins, mcu, chipmisc, extruder, fan, heater, toolhead]:
|
||||
for m in [pins, mcu, chipmisc, toolhead, extruder, fan, heater]:
|
||||
m.add_printer_objects(self, config)
|
||||
self.mcu = self.objects['mcu']
|
||||
# Validate that there are no undefined parameters in the config file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue