gcode_arcs: Simplify parameter parsing

Use the normal gcode.get_float() mechanism for extracting parameters
from the g-code command.

Don't register descriptions for the G2/G3 commands as the convention
is to only use descriptions for "extended g-code commands".

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2020-04-22 14:30:52 -04:00
parent 120331f49a
commit ff28f33967
2 changed files with 39 additions and 87 deletions

View File

@@ -502,14 +502,13 @@
#unretract_speed: 10
# The speed of unretraction, in mm/s. The default is 10 mm/s.
# enables arc (G2/G3) commands. Only IJ version is supported
# example: "G2 X125 Y32 Z10 E5 I10.5 J10.5"
# Support for gcode arc (G2/G3) commands.
#[gcode_arcs]
#resolution: 1.0
# An arc will be split into segments. Each segment's length will equal
# the resolution in mm set above. Lower values will produce a finer arc,
# but also more work for your machine. Arcs smaller than the configured
# value will become straight lines.
# value will become straight lines. The default is 1mm.
# Enable the "M118" and "RESPOND" extended commands.
# [respond]