Crate vex_rt

source ·
Expand description

A crate for running rust on the VEX V5.

Modules

Interfacing with ADI components of the Vex V5 robot.
V5 Battery API.
Controller API.
Distance Sensor API.
Inertial Sensor API.
STDIO/STDERR macros.
Support for synchronous and asynchronous state machines.
Motor API.
Peripherals.
Convenient to use common components.
For use with the entry! macro.
Rotation Sensor API.
Multitasking primitives.
API for using smart ports as generic serial ports.
SmartPort.

Macros

Specifies the entrypoint for the robot.
Selects over a range of possible future events, processing exactly one. Inspired by equivalent behaviours in other programming languages such as Go and Kotlin, and ultimately the select system call from POSIX.
Generates a future event (i.e. one which implements crate::rtos::Selectable) from a set of events which all have the same result type, by repeated application of crate::rtos::select_either.
Generates a future event (i.e. one which implements crate::rtos::Selectable) from a similar recipe as the select! macro, combining the behaviour of select_map and select_any!.
Creates an asynchronous state machine with the given visibility, name and state definitions.