From 46f6dff8f45699c7099130124a486e379002bd11 Mon Sep 17 00:00:00 2001 From: MatthewChoulas Date: Wed, 8 Jan 2025 21:29:51 -0500 Subject: [PATCH] fix velocity/position signal bug --- src/main/kotlin/org/team4099/lib/units/MechanismUnits.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/team4099/lib/units/MechanismUnits.kt b/src/main/kotlin/org/team4099/lib/units/MechanismUnits.kt index ef075bf..8e21841 100644 --- a/src/main/kotlin/org/team4099/lib/units/MechanismUnits.kt +++ b/src/main/kotlin/org/team4099/lib/units/MechanismUnits.kt @@ -330,7 +330,7 @@ fun ctreAngularMechanismSensor( compensationVoltage: ElectricalPotential ): AngularMechanismSensor { val velocitySignal = controller.velocity - val positionSignal = controller.velocity + val positionSignal = controller.position return AngularMechanismSensor( ratio,