mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-15 18:58:03 -06:00
gcode: Support parsing of "extended" gcode commands
Support human readable commands (eg, "help"). Add a "help" command to list these extended commands. Also, add support for declaring command aliases, command help, and command availability next to the handlers themselves. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
35719e665c
commit
a6055ce069
3 changed files with 39 additions and 30 deletions
|
@ -248,7 +248,7 @@ class ToolHead:
|
|||
self.move_queue.flush()
|
||||
self.commanded_pos[:] = newpos
|
||||
self.kin.set_position(newpos)
|
||||
def move(self, newpos, speed, sloppy=False):
|
||||
def move(self, newpos, speed):
|
||||
speed = min(speed, self.max_speed)
|
||||
move = Move(self, self.commanded_pos, newpos, speed, self.max_accel)
|
||||
if not move.move_d:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue