singleaxis

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package singleaxis implements a single-axis gantry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Board           string   `json:"board,omitempty"` // used to read limit switch pins and control motor with gpio pins
	Motor           string   `json:"motor"`
	LimitSwitchPins []string `json:"limit_pins,omitempty"`
	LimitPinEnabled *bool    `json:"limit_pin_enabled_high,omitempty"`
	LengthMm        float64  `json:"length_mm"`
	MmPerRevolution float64  `json:"mm_per_rev"`
	GantryMmPerSec  float64  `json:"gantry_mm_per_sec,omitempty"`
}

Config is used for converting singleAxis config attributes.

func (*Config) Validate

func (cfg *Config) Validate(path string) ([]string, error)

Validate ensures all parts of the config are valid.

Jump to

Keyboard shortcuts

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