gcode

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GcodeFilter

func GcodeFilter() func(string) bool

GcodeFilter filters out comments from gcode. repeated stripComments ?

func NopFilter

func NopFilter() func(string) bool

NopFilter never filters.

func ParseGcode

func ParseGcode(r io.Reader) ([]string, error)

Types

type Line

type Line struct {
	Raw        string           // The raw gcode line as read from the file
	Command    string           // The G-code command (e.g., "G1", "M104")
	HasCommand bool             // If the line has a valid cmd
	Params     map[rune]float64 // Extra params associated with the command: eg X10 Y20
}

func ParseLine

func ParseLine(raw string) Line

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL