Skip to content

Commit

Permalink
fixed usage of controller.velocity instead of controller.position
Browse files Browse the repository at this point in the history
  • Loading branch information
Shom770 authored Feb 8, 2024
1 parent 641aa09 commit 0ee73dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/team4099/lib/units/MechanismUnits.kt
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ fun ctreLinearMechanismSensor(
compensationVoltage: ElectricalPotential
): LinearMechanismSensor {
val velocitySignal = controller.velocity
val positionSignal = controller.velocity
val positionSignal = controller.position

return LinearMechanismSensor(
diameter,
Expand Down

0 comments on commit 0ee73dd

Please sign in to comment.