Skip to content

Commit ed4d425

Browse files
committed
replaced @links to setZeroOffset to @code because javadocs can't find setZeroOffset, (there might be a better way to fix it but I am not sure)
1 parent 8f427ef commit ed4d425

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/carlmontrobotics/lib199/sim/MockedEncoder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public class MockedEncoder implements AbsoluteEncoder, AnalogInput, AutoCloseabl
4343
* @param countsPerRev The value that this.getCountsPerRevolution() should return
4444
* @param analog Whether the encoder is an analog sensor
4545
* @param absolute Whether the encoder is an absolute encoder. This flag caps the position to
46-
* one rotation via. {@link MathUtil#inputModulus(double, double, double)}, disables
47-
* {@link #setPosition(double)}, and enables {@link #setZeroOffset(double)}.
46+
* one rotation via. {@link MathUtil#inputModulus(double, double, double)}, disables
47+
* {@link #setPosition(double)}, and enables {@code setZeroOffset(double)}.
4848
*
4949
* {@link #getVelocity()} will return a value in rpm.
5050
*/
@@ -58,8 +58,8 @@ public MockedEncoder(SimDevice device, int countsPerRev, boolean analog,
5858
* @param countsPerRev The value that this.getCountsPerRevolution() should return
5959
* @param analog Whether the encoder is an analog sensor
6060
* @param absolute Whether the encoder is an absolute encoder. This flag caps the position to
61-
* one rotation via. {@link MathUtil#inputModulus(double, double, double)}, disables
62-
* {@link #setPosition(double)}, and enables {@link #setZeroOffset(double)}.
61+
* one rotation via. {@link MathUtil#inputModulus(double, double, double)}, disables
62+
* {@link #setPosition(double)}, and enables {@code setZeroOffset(double)}.
6363
* @param useRps Whether getVelocity() should return rps instead of rpm.
6464
*/
6565
public MockedEncoder(SimDevice device, int countsPerRev, boolean analog,
@@ -106,7 +106,7 @@ public REVLibError setPosition(double newPosition) {
106106
// }
107107

108108
/**
109-
* @return The current position of the encoder, not accounting for the position offset ({@link #setPosition(double)} and {@link #setZeroOffset(double)})
109+
* @return The current position of the encoder, not accounting for the position offset ({@link #setPosition(double)} and {@code setZeroOffset(double)})
110110
*/
111111
public double getRawPosition() {
112112
double rotationsOrVolts = voltage != null ? voltage.get() : position.get();

0 commit comments

Comments
 (0)