module

package
v0.0.0-...-7a59755 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

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 int8
const (
	TypeConnection Type = 1 << iota
	TypeRobot
	TypeChassis
	TypeGimbal
	TypeCamera
	TypeGun
	TypeGamePad

	TypeAll = TypeConnection | TypeRobot | TypeChassis | TypeGimbal |
		TypeCamera | TypeGun | TypeGamePad
	TypeAllButGamePad = TypeConnection | TypeRobot | 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