oneaxis

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package oneaxis implements a one-axis gantry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttrConfig

type AttrConfig 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_revolution,omitempty"`
	GantryRPM       float64                   `json:"gantry_rpm,omitempty"`
	Axis            spatial.TranslationConfig `json:"axis"`
}

AttrConfig is used for converting oneAxis config attributes.

func (*AttrConfig) Validate

func (config *AttrConfig) 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