mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
Checkstyle 8.1 (#584)
Added a few checks too: - SimplifyBooleanExpression - SimplifyBooleanReturn - StringLiteralEquality - UnnecessaryParentheses
This commit is contained in:
committed by
Peter Johnson
parent
3cfcbe9a95
commit
ddd5aeba19
@@ -139,7 +139,7 @@ public abstract class MotorEncoderFixture<T extends SpeedController> implements
|
||||
*/
|
||||
public boolean isMotorSpeedWithinRange(double value, double accuracy) {
|
||||
initialize();
|
||||
return Math.abs((Math.abs(m_motor.get()) - Math.abs(value))) < Math.abs(accuracy);
|
||||
return Math.abs(Math.abs(m_motor.get()) - Math.abs(value)) < Math.abs(accuracy);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user