bot

package
v0.0.0-...-31ab637 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2019 License: BSD-3-Clause Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	QUIT byte = 0x03
	NOOP byte = 0x04
)
View Source
const (
	VendorLegoID = 0x0694
	ProductNXTID = 0x0002

	InputEndpoint  = 0x82 ^ 0x80 // = 2. Actual endpoint is 0x82, but gousb counts from 1-15.
	OutputEndpoint = 0x01

	ConfigNXT    = 1
	InterfaceNXT = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

func New

func New(id int, M models.Model, t camera.WriterType) (*Bot, error)

func (*Bot) Close

func (B *Bot) Close()

func (*Bot) DoCamera

func (B *Bot) DoCamera()

func (*Bot) DoInference

func (B *Bot) DoInference()

func (*Bot) SetTransform

func (B *Bot) SetTransform(T func(src gocv.Mat, dst *gocv.Mat))

func (*Bot) Start

func (B *Bot) Start()

type Port

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

Port is a USB device port.

func NewPort

func NewPort() *Port

func (*Port) Close

func (p *Port) Close()

func (*Port) Write

func (p *Port) Write(b []byte) int

Jump to

Keyboard shortcuts

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