machine

package
v0.0.0-...-752f67b Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanMachineCache

func CleanMachineCache() error

CleanLibraryCache compares the libraries on disk to the ones we have configured. It then removes any on disk from the cache that aren't present in the config.

If there are any libaries in the config that don't exist on disk, they are removed from the config.

func Import

func Import(path string) error

Types

type Axis

type Axis struct {
	ID    byte  `json:"id" yaml:"id"`
	Range Range `json:"range" yaml:"range"`
}

type Capabilities

type Capabilities struct {
	Additive   bool `json:"additive" yaml:"additive"`
	Inspection bool `json:"inspection" yaml:"inspection"`
	Jet        bool `json:"jet" yaml:"jet"`
	Milling    bool `json:"milling" yaml:"milling"`
	Turning    bool `json:"turning" yaml:"turning"`
}

type Machine

type Machine struct {
	Name         string            `json:"name" yaml:"name"`
	Axes         []Axis            `json:"axes" yaml:"axes"`
	Capabilities Capabilities      `json:"capabilities" yaml:"capabilities"`
	Spindle      Range             `json:"spindle" yaml:"spindle"`
	Procedures   map[string]string `json:"procedures" yaml:"procedures"`
}

func LoadMachine

func LoadMachine(path string) (Machine, error)

type Range

type Range struct {
	Minimum float64 `json:"minimum" yaml:"minimum"`
	Maximum float64 `json:"maximum" yaml:"maximum"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳