diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-12-10 21:40:20 -0500 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2018-12-24 11:38:59 -0500 |
commit | 7e3e02a17ab33b89e633aafce2b0216ec7b35c49 (patch) | |
tree | 34cfe367cbf3c4253b732b3a1d49131219f90d08 /klippy/kinematics/none.py | |
parent | 50e9c6738f891af5e1a79f67d3a2103038c1eabc (diff) | |
download | kutter-7e3e02a17ab33b89e633aafce2b0216ec7b35c49.tar.gz kutter-7e3e02a17ab33b89e633aafce2b0216ec7b35c49.tar.xz kutter-7e3e02a17ab33b89e633aafce2b0216ec7b35c49.zip |
kinematics: Add a "none" debugging kinematics
Add a dummy kinematics class for development testing.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/kinematics/none.py')
-rw-r--r-- | klippy/kinematics/none.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/klippy/kinematics/none.py b/klippy/kinematics/none.py new file mode 100644 index 00000000..d634ed9d --- /dev/null +++ b/klippy/kinematics/none.py @@ -0,0 +1,26 @@ +# Dummy "none" kinematics support (for developer testing) +# +# Copyright (C) 2018 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): + pass + def get_steppers(self, flags=""): + return [] + def calc_position(self): + return [0, 0, 0] + def set_position(self, newpos, homing_axes): + pass + def home(self, homing_state): + pass + def motor_off(self, print_time): + pass + def check_move(self, move): + pass + def move(self, print_time, move): + pass + +def load_kinematics(toolhead, config): + return NoneKinematics(toolhead, config) |