mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user