pwmbase

package
v0.0.0-...-40c98da Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Model = resource.ModelNamespace("viam-labs").WithFamily("base").WithModel("ackermann-pwm-base")

Functions

This section is empty.

Types

type Config

type Config struct {
	SteerServo  string  `json:"steer"`
	DriveServo  string  `json:"drive"`
	Radius      float64 `json:"turning_radius_meters"`
	Wheelbase   float64 `json:"wheelbase_mm"`
	MaxSpeedMPS float64 `json:"max_speed_meters_per_second"`
	InvertSteer bool    `json:"invert_steer,omitempty"`
	InvertDrive bool    `json:"invert_drive,omitempty"`
}

AttrConfig is used for converting config attributes.

func (*Config) Validate

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