controller

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: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode uint8

Mode is the type of control mode for the robot.

const (
	// ModeFPV enables the dual stick controller type.
	ModeFPV Mode = iota
	// ModeSDK enables the SDK controller type.
	ModeSDK
)

func (Mode) String

func (cm Mode) String() string

func (Mode) Valid

func (cm Mode) Valid() bool

type StickPosition

type StickPosition struct {
	X float64
	Y float64
}

func (*StickPosition) InterpolatedX

func (s *StickPosition) InterpolatedX() uint64

func (*StickPosition) InterpolatedY

func (s *StickPosition) InterpolatedY() uint64

Jump to

Keyboard shortcuts

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