[][src]Crate ds

ds

ds is a library that allows for control of FIRST Robotics Competition robots. The protocol supported currently is that of the 2018 season, with only the bare minimum required to control the robot currently consumed. Diagnostic and telemetry information is not decoded and is discarded

The core trait for use of the crate is the DriverStation crate. This crate provides an API for connecting and controlling to the roboRIO in an FRC robot. It also allows for users to provide joystick input using arbitrary APIs, and to consume any incoming TCP packets.

Modules

tags

This module contains various tags that can be attached to the outbound UDP packet The Tag trait contains the core logic, and is inherited by structs with specific roles

Structs

Alliance

Struct abstracting the byte value for alliance colour and position

Control

bitflag struct for the Control value of the packet

DriverStation

Represents a connection to the roboRIO acting as a driver station

GameData
MatchInfo
Request

bitflags for reboot and code restart requests

Stdout

Contains data outputted to standard output from robot code. Can be consumed by API users to display code logs

Trace

Enums

DsMode

The operating mode of the driver station

JoystickValue

Enum representing a value from a Joystick to be transmitted to the roboRIO

MatchType
Mode

Represents the current Mode that the robot is in. the Mode of the robot is considered separately from whether it is enabled or not

TcpPacket

Enum containing possible incoming TCP packets from the roboRIO

TcpTag

Type Definitions

Result