This commit is contained in:
samfreund
2025-11-26 21:10:02 -06:00
parent 5457db947e
commit f022130bfa
12 changed files with 249 additions and 74 deletions

View File

@@ -0,0 +1,31 @@
"""Minimal wpimath.units stub for documentation builds."""
def degreesToRadians(deg: float) -> float:
from math import pi
return deg * (pi / 180.0)
# Represent seconds as a float alias for annotations
seconds = float
__all__ = ["degreesToRadians", "seconds"]
# Common unit aliases used in type annotations in WPILib stubs
meters = float
meters_per_second = float
meters_per_second_squared = float
kilograms = float
kilogram_square_meters = float
__all__.extend([
"meters",
"meters_per_second",
"meters_per_second_squared",
"kilograms",
"kilogram_square_meters",
"hertz",
])
# frequency
hertz = float