From 868b798303c510a149718cabe3e8e68c0587f616 Mon Sep 17 00:00:00 2001 From: David Vo Date: Fri, 17 Jan 2025 19:18:06 +1100 Subject: [PATCH] wpimath: Fix radians_per_second unit --- .../src/type_casters/units_angular_acceleration_type_caster.h | 2 +- subprojects/robotpy-wpimath/wpimath/units.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/subprojects/robotpy-wpimath/wpimath/_impl/src/type_casters/units_angular_acceleration_type_caster.h b/subprojects/robotpy-wpimath/wpimath/_impl/src/type_casters/units_angular_acceleration_type_caster.h index 3a486d8b1..6ccff80ec 100644 --- a/subprojects/robotpy-wpimath/wpimath/_impl/src/type_casters/units_angular_acceleration_type_caster.h +++ b/subprojects/robotpy-wpimath/wpimath/_impl/src/type_casters/units_angular_acceleration_type_caster.h @@ -9,7 +9,7 @@ template <> struct handle_type_name { }; template <> struct handle_type_name { - static constexpr auto name = _("wpimath.units.radians_per_second"); + static constexpr auto name = _("wpimath.units.radians_per_second_squared"); }; template <> struct handle_type_name { diff --git a/subprojects/robotpy-wpimath/wpimath/units.py b/subprojects/robotpy-wpimath/wpimath/units.py index cdcb0f5f0..540b7afb9 100644 --- a/subprojects/robotpy-wpimath/wpimath/units.py +++ b/subprojects/robotpy-wpimath/wpimath/units.py @@ -190,7 +190,6 @@ def lbsToKilograms(lbs: pounds) -> kilograms: # angular acceleration radians_per_second_squared = float -radians_per_second = float degrees_per_second_squared = float turns_per_second_squared = float