Skip to content
Sketched Doughnut edited this page Apr 16, 2026 · 5 revisions

Beaverlib has its own unit system separate from WPI and by using extension functions, units can simply be defined, such as 1.0.meters, and can be converted by using robotWidth.asInches. This also means that converting in-place is significantly simpler, as you can do 180.0.degrees.asRadians to convert from degrees to radians.

Beaverlib has units for:

  • Angle
  • Angular Velocity
  • Angular Acceleration
  • Current
  • Energy (J)
  • Power (W)
  • Resistance
  • Voltage
  • Distance
  • Velocity
  • Acceleration
  • Force
  • Frequency
  • Time
  • Weight

Clone this wiki locally