Crate frclib_core

source ·
Expand description

§frclib-core

This crate contains the core functionality for the rust FRC ecosystem. Whenever a crate that frclib depends on needs to use an frc feature it will use this crate to prevent circular dependencies.

This library goes as far as it can to be panic free, the only function that can panic is HAL Initialization.

Modules§

  • This module contains what is needed to write and use a HAL(Hardware Abstraction Layer).
  • This module contains an implementation of WPIlib struct spec for rust and a macro to generate the trait implementation for a given struct.
  • A pluggable time interface for FRC.
  • A custom unit system for frclib rust.
  • This module contains the FrcValue type which is used to represent values in various frc protocols.

Macros§

  • A macro for defining a unit of measurement. This macro is used to define a new unit of measurement.
  • A macro for defining a unit conversion. This macro is used to define a conversion between two units of the same dimension.
  • A macro for defining a unit dimension analysis.
  • A macro for defining a unit family. Unit families allow all units to fall under a single trait. This allows for easy conversion between units of the same family and allows for functions to be generic over all units of a family.