Wiki
Clone wikiGCode Editor / gen / Command
Documentation
public Command(String code)
Constructs a new Command with everything at defaults and length of time = 0;
- Parameters:
code
— the gcode line which generated this command.
public Command(String line, int ms)
Constructs a new command which will block for a predetermined minimum of time
- Parameters:
line
— the gcode line which generated this command.ms
— the time to block for in ms
public static String fabG92Line(float[] pos)
Creates a GCode Line with a G92 resetting some or all of the coordinates to something else. Passing four NaNs is equivalent to passing four zeros because of the GCode spec.
- Parameters:
pos
— a length-4 XYZE vector. Each component may be any finite value to set the coordinate to or NaN to not set the coordinate - Returns: A valid line of GCode generated from the position passed in.
Updated