field

package
v0.0.0-...-ef2a656 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlayAllSounds

func PlayAllSounds()

PlayAllSounds plays all game sounds to test audio levels

func ResetAlliances

func ResetAlliances()

ResetAlliances clears all alliance stations

func Setup

func Setup(auto, teleop, endGame string, sounds bool) error

Setup creates a new field setup (once per event)

func Start

func Start()

Start starts a match

func State

func State() map[string]interface{}

State gets the game state

func Stop

func Stop()

Stop stops a match

func TeamNumbers

func TeamNumbers() map[string]int

TeamNumbers gets a map of alliance station position to team number

func UpdateMatchName

func UpdateMatchName(n string)

UpdateMatchName sets the match name

func UpdateTeamNumbers

func UpdateTeamNumbers(alliances map[string]int)

UpdateTeamNumbers updates all alliance station team numbers

Types

This section is empty.

Jump to

Keyboard shortcuts

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