mirror of
https://github.com/QIDITECH/klipper.git
synced 2026-01-30 23:48:43 +03:00
klipper update
This commit is contained in:
28
klippy/kinematics/none.py
Normal file
28
klippy/kinematics/none.py
Normal file
@@ -0,0 +1,28 @@
|
||||
# Dummy "none" kinematics support (for developer testing)
|
||||
#
|
||||
# Copyright (C) 2018-2021 Kevin O'Connor <kevin@koconnor.net>
|
||||
#
|
||||
# This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
|
||||
class NoneKinematics:
|
||||
def __init__(self, toolhead, config):
|
||||
self.axes_minmax = toolhead.Coord(0., 0., 0., 0.)
|
||||
def get_steppers(self):
|
||||
return []
|
||||
def calc_position(self, stepper_positions):
|
||||
return [0, 0, 0]
|
||||
def set_position(self, newpos, homing_axes):
|
||||
pass
|
||||
def home(self, homing_state):
|
||||
pass
|
||||
def check_move(self, move):
|
||||
pass
|
||||
def get_status(self, eventtime):
|
||||
return {
|
||||
'homed_axes': '',
|
||||
'axis_minimum': self.axes_minmax,
|
||||
'axis_maximum': self.axes_minmax,
|
||||
}
|
||||
|
||||
def load_kinematics(toolhead, config):
|
||||
return NoneKinematics(toolhead, config)
|
||||
Reference in New Issue
Block a user