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)
Functions
Link copied to clipboard
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.