-
Notifications
You must be signed in to change notification settings - Fork 1
Units
BubbleShade edited this page Dec 7, 2025
·
4 revisions
Beaver lib has its own unit system separate from WPI, by using extension functions, units can simply be defined by using 1.0.meters, and can be converted by using robotWidth.asInches. This also means that converting in-place is much simple, as you can do 180.degrees.asRadians to convert from degrees to radians. Beaverlib also supports basic unit
Beaverlib has units for: Angle, Angular Velocity, Angular Acceleration Current, Energy (J), Power (W), Resistance, Voltage Distance, Velocity, Acceleration Force, Frequency, Time, Weight