Crate pros_devices

Source
Expand description

§pros-devices

Functionality for accessing hardware connected to the V5 brain.

§Overview

The V5 brain features 21 RJ9 4p4c connector ports (known as “Smart ports”) for communicating with newer V5 peripherals, as well as six 3-wire ports with log-to-digital conversion capability for compatibility with legacy Cortex devices. This module provides access to both smart devices and ADI devices.

§Organization

  • smart contains abstractions and types for smart port connected devices.
  • adi contains abstractions for three wire ADI connected devices.
  • battery provides functions for getting information about the currently connected battery.
  • controller provides types for interacting with the V5 controller.

Re-exports§

pub use controller::Controller;
pub use position::Position;
pub use screen::Screen;

Modules§

adi
ADI (Triport) devices on the Vex V5.
battery
Utilites for getting information about the robot’s battery.
color
Generic RGB8 color type and conversion trait. The Rgb and IntoRgb types are used in multiple places in the library to represent colors.
competition
Utilities for getting what state of the competition the robot is in.
controller
Read from the buttons and joysticks on the controller and write to the controller’s display.
peripherals
Peripherals implementations.
position
Generic angular position type for motors and sensors.
screen
Brain screen display and touch functions.
smart
Smart Ports & Devices
usd
USD api.