motor

package
v0.0.0-...-a6ce1d2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: GPL-2.0 Imports: 0 Imported by: 5

Documentation

Overview

Package motor implements a motor interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Motor

type Motor interface {
	GetMotorType() Type
	Set(uint8)
	State() uint8
}

Motor is an interface to be implemented for motor drivers

type Type

type Type uint8

Type is the motor type

const (
	DC Type = iota
	Servo
	Stepper
)

Types of motor

func (Type) TypeName

func (m Type) TypeName() string

TypeName gets the textual representation of the motor type

Directories

Path Synopsis
Package cmdmotor creates motor interfaces with a commander.Sender
Package cmdmotor creates motor interfaces with a commander.Sender
Package fake implements fake motors for testing purposes
Package fake implements fake motors for testing purposes

Jump to

Keyboard shortcuts

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