[wpilib] Add unit docs for return type of DCMotorSim getters (#8070)

We took away the units as part of the function name but didn't comment them back
This commit is contained in:
Jason Daming
2025-07-06 21:45:47 -05:00
committed by GitHub
parent d7550a02f7
commit 708bf7d815

View File

@@ -118,7 +118,7 @@ public class DCMotorSim extends LinearSystemSim<N2, N1, N2> {
/**
* Returns the DC motor's position.
*
* @return The DC motor's position in meters.
* @return The DC motor's position in radians.
*/
public double getAngularPosition() {
return getOutput(0);
@@ -127,7 +127,7 @@ public class DCMotorSim extends LinearSystemSim<N2, N1, N2> {
/**
* Returns the DC motor's velocity.
*
* @return The DC motor's velocity.
* @return The DC motor's velocity in radians per second.
*/
public double getAngularVelocity() {
return getOutput(1);