2018-12-11 03:40:20 +01:00
|
|
|
# Dummy "none" kinematics support (for developer testing)
|
|
|
|
#
|
2021-01-08 17:52:28 +01:00
|
|
|
# Copyright (C) 2018-2021 Kevin O'Connor <kevin@koconnor.net>
|
2018-12-11 03:40:20 +01:00
|
|
|
#
|
|
|
|
# This file may be distributed under the terms of the GNU GPLv3 license.
|
|
|
|
|
|
|
|
class NoneKinematics:
|
|
|
|
def __init__(self, toolhead, config):
|
2021-01-08 17:52:28 +01:00
|
|
|
self.axes_minmax = toolhead.Coord(0., 0., 0., 0.)
|
2020-01-14 03:39:55 +01:00
|
|
|
def get_steppers(self):
|
2018-12-11 03:40:20 +01:00
|
|
|
return []
|
2021-05-01 06:27:43 +02:00
|
|
|
def calc_position(self, stepper_positions):
|
2018-12-11 03:40:20 +01:00
|
|
|
return [0, 0, 0]
|
|
|
|
def set_position(self, newpos, homing_axes):
|
|
|
|
pass
|
|
|
|
def home(self, homing_state):
|
|
|
|
pass
|
|
|
|
def check_move(self, move):
|
|
|
|
pass
|
2019-11-25 01:16:21 +01:00
|
|
|
def get_status(self, eventtime):
|
2020-12-27 23:37:32 +01:00
|
|
|
return {
|
|
|
|
'homed_axes': '',
|
2021-01-08 17:52:28 +01:00
|
|
|
'axis_minimum': self.axes_minmax,
|
|
|
|
'axis_maximum': self.axes_minmax,
|
2020-12-27 23:37:32 +01:00
|
|
|
}
|
2018-12-11 03:40:20 +01:00
|
|
|
|
|
|
|
def load_kinematics(toolhead, config):
|
|
|
|
return NoneKinematics(toolhead, config)
|