bed

package
v0.0.0-...-09eb250 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SavePNG

func SavePNG(path string, interp ZFunc, bedMax f64.Vec2, scale float64) error

func SaveSampleFile

func SaveSampleFile(path string, points []Sample) (err error)

Types

type Sample

type Sample struct {
	X    float64 `json:"x"`
	Y    float64 `json:"y"`
	Offs float64 `json:"offs"`
}

func LoadSampleFile

func LoadSampleFile(path string) (points []Sample, err error)

func ParsePoint

func ParsePoint(line string) (res Sample, ok bool)

ParsePoint attemps to parse a bedlevel point from the device.

func (Sample) Vec3

func (s Sample) Vec3() f64.Vec3

type ZFunc

type ZFunc f64.Function2D

ZFunc represents a function used to produce the z offset for bed leveling.

func Generate

func Generate(samples []Sample, bedMax f64.Vec2) (ZFunc, error)

Jump to

Keyboard shortcuts

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