oxigen

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CarForceLaneChangeLeft  = 0x80
	CarForceLaneChangeRight = 0x40
	CarForceLaneChangeNone  = 0x00
	CarForceLangeChangeAny  = CarForceLaneChangeLeft | CarForceLaneChangeRight
)

Variables

This section is empty.

Functions

func CreateUSBConnection

func CreateUSBConnection(device string) (*serial.Port, error)

Types

type Car

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

type Command

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

type Config

type Config struct {
	Implement struct {
		Oxigen struct {
			Port string
		}
	}
}

type Oxigen

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

func CreateFromConfig

func CreateFromConfig(context *context.Context) (*Oxigen, error)

func CreateImplement

func CreateImplement(serial io.ReadWriteCloser) (*Oxigen, error)

func (*Oxigen) EventChannel

func (o *Oxigen) EventChannel() <-chan implement.Event

func (*Oxigen) EventLoop

func (o *Oxigen) EventLoop() error

func (*Oxigen) ResendCarState

func (o *Oxigen) ResendCarState(c *state.Car)

func (*Oxigen) SendCarState

func (o *Oxigen) SendCarState(c state.CarState) error

func (*Oxigen) SendRaceState

func (o *Oxigen) SendRaceState(r state.CourseState) error

type PitLane

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

type Settings

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

Jump to

Keyboard shortcuts

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