module

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 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 uint8
const (
	TypeConnection Type = 1 << iota
	TypeRobot
	TypeController
	TypeChassis
	TypeGimbal
	TypeCamera
	TypeGun
	TypeGamePad

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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