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
usecommon 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
selectsystem 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 ofcrate::rtos::select_either. - select_
merge - Generates a future event (i.e. one which implements
crate::rtos::Selectable) from a similar recipe as theselect!macro, combining the behaviour ofselect_mapandselect_any!. - state_
machine - Creates an asynchronous state machine with the given visibility, name and state definitions.