module

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module interface {
	fmt.Stringer

	// Start starts the module.
	Start() error

	// Connected returns true if the module connection has been established.
	Connected() bool

	// WaitForConnection waits for the module connection to be established.
	WaitForConnection(timeout time.Duration) bool

	// Stop stops the module.
	Stop() error
}

Module is the interface implemented by all modules.

type Type

type Type uint16
const (
	TypeConnection Type = 1 << iota
	TypeRobot
	TypeController
	TypeChassis
	TypeGimbal
	TypeCamera
	TypeSDCard
	TypeGun
	TypeGamePad

	TypeAllButGamePad = TypeConnection | TypeRobot | TypeController |
		TypeChassis | TypeGimbal | TypeCamera | TypeSDCard | TypeGun
	TypeAll = TypeAllButGamePad | TypeGamePad
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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