servos

package
v0.0.0-...-af67c94 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actuator

type Actuator struct {
	// contains filtered or unexported fields
}

func New

func New(cfg []Motor, timerMapping TimerMappingFunc) (Actuator, error)

func (*Actuator) Configure

func (s *Actuator) Configure(cfg []Motor) error

func (*Actuator) Get

func (s *Actuator) Get() ([]float32, error)

func (*Actuator) Set

func (s *Actuator) Set(params []float32) error

type Config

type Config = pb.Config

type Motor

type Motor = pb.Motor

type State

type State = kinematics.State

type TimerMappingFunc

type TimerMappingFunc func(pin machine.Pin) (*machine.TCC, bool)

Jump to

Keyboard shortcuts

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