Crate vex_rt

Source
Expand description

A crate for running rust on the VEX V5.

Modules§

adi
Interfacing with ADI components of the Vex V5 robot.
battery
V5 Battery API.
controller
Controller API.
distance
Distance Sensor API.
imu
Inertial Sensor API.
io
STDIO/STDERR macros.
machine
Support for synchronous and asynchronous state machines.
motor
Motor API.
peripherals
Peripherals.
prelude
Convenient to use common components.
robot
For use with the entry! macro.
rotation
Rotation Sensor API.
rtos
Multitasking primitives.
serial
API for using smart ports as generic serial ports.
smart_port
SmartPort.

Macros§

entry
Specifies the entrypoint for the robot.
select
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.
select_any
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.
select_merge
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!.
state_machine
Creates an asynchronous state machine with the given visibility, name and state definitions.