BasicGrblGenerator

data class BasicGrblGenerator(val drawRate: Double? = 500.0, val moveRate: Double? = null, val setup: Commands = listOf( "G21", // mm "G90", // Absolute positioning ), val preDraw: Commands = listOf("M3 S255"), val postDraw: Commands = listOf("M3 S0"), val comment: (String) -> Commands = { listOf(";$it") }, val end: Commands = listOf( "G0 X0 Y0", "G90", ), val deduplicateCommands: Boolean = true, val distanceTolerance: Double = 0.5, val minSquaredDistance: Double = 0.5) : Generator(source)

Constructors

Link copied to clipboard
constructor(drawRate: Double? = 500.0, moveRate: Double? = null, setup: Commands = listOf( "G21", // mm "G90", // Absolute positioning ), preDraw: Commands = listOf("M3 S255"), postDraw: Commands = listOf("M3 S0"), comment: (String) -> Commands = { listOf(";$it") }, end: Commands = listOf( "G0 X0 Y0", "G90", ), deduplicateCommands: Boolean = true, distanceTolerance: Double = 0.5, minSquaredDistance: Double = 0.5)

Properties

Link copied to clipboard

Function to convert a comment string to gcode commands.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Commands to be executed at the end of a file.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Commands to be executed after drawing each contour. Disables the drawing tool.

Link copied to clipboard

Commands to be executed before drawing each contour. Enables the drawing tool.

Link copied to clipboard

Setup code at the beginning of a file.

Functions

Link copied to clipboard
open override fun createContext(): GeneratorContext
Link copied to clipboard

Opens a new GeneratorContext and calls block with it. The context is initialized with GeneratorContext.beginFile and finalized with GeneratorContext.endFile.