mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[build] Upgrade to PMD 7.2.0 (#6718)
This commit is contained in:
@@ -28,7 +28,7 @@ public final class Constants {
|
||||
public static final double kWheelDiameterInches = 6;
|
||||
public static final double kEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
(kWheelDiameterInches * Math.PI) / (double) kEncoderCPR;
|
||||
(kWheelDiameterInches * Math.PI) / kEncoderCPR;
|
||||
}
|
||||
|
||||
public static final class ArmConstants {
|
||||
|
||||
@@ -28,7 +28,7 @@ public final class Constants {
|
||||
public static final double kWheelDiameterInches = 6;
|
||||
public static final double kEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
(kWheelDiameterInches * Math.PI) / (double) kEncoderCPR;
|
||||
(kWheelDiameterInches * Math.PI) / kEncoderCPR;
|
||||
}
|
||||
|
||||
public static final class ArmConstants {
|
||||
|
||||
@@ -28,7 +28,7 @@ public final class Constants {
|
||||
public static final double kWheelDiameterInches = 6;
|
||||
public static final double kEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
(kWheelDiameterInches * Math.PI) / (double) kEncoderCPR;
|
||||
(kWheelDiameterInches * Math.PI) / kEncoderCPR;
|
||||
}
|
||||
|
||||
public static final class ShooterConstants {
|
||||
@@ -37,7 +37,7 @@ public final class Constants {
|
||||
public static final int kEncoderCPR = 1024;
|
||||
public static final double kEncoderDistancePerPulse =
|
||||
// Distance units will be rotations
|
||||
1.0 / (double) kEncoderCPR;
|
||||
1.0 / kEncoderCPR;
|
||||
|
||||
public static final int kShooterMotorPort = 4;
|
||||
public static final int kFeederMotorPort = 5;
|
||||
|
||||
@@ -24,7 +24,7 @@ public final class Constants {
|
||||
public static final double kWheelDiameterInches = 6;
|
||||
public static final double kEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
(kWheelDiameterInches * Math.PI) / (double) kEncoderCPR;
|
||||
(kWheelDiameterInches * Math.PI) / kEncoderCPR;
|
||||
}
|
||||
|
||||
public static final class ClawConstants {
|
||||
|
||||
@@ -28,7 +28,7 @@ public final class Constants {
|
||||
public static final double kWheelDiameterInches = 6;
|
||||
public static final double kEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
(kWheelDiameterInches * Math.PI) / (double) kEncoderCPR;
|
||||
(kWheelDiameterInches * Math.PI) / kEncoderCPR;
|
||||
|
||||
public static final boolean kGyroReversed = false;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ public final class Constants {
|
||||
public static final double kWheelDiameterInches = 6;
|
||||
public static final double kEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
(kWheelDiameterInches * Math.PI) / (double) kEncoderCPR;
|
||||
(kWheelDiameterInches * Math.PI) / kEncoderCPR;
|
||||
}
|
||||
|
||||
public static final class HatchConstants {
|
||||
|
||||
@@ -28,7 +28,7 @@ public final class Constants {
|
||||
public static final double kWheelDiameterInches = 6;
|
||||
public static final double kEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
(kWheelDiameterInches * Math.PI) / (double) kEncoderCPR;
|
||||
(kWheelDiameterInches * Math.PI) / kEncoderCPR;
|
||||
}
|
||||
|
||||
public static final class HatchConstants {
|
||||
|
||||
@@ -37,6 +37,7 @@ public class Robot extends TimedRobot {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("PMD.ConsecutiveLiteralAppends")
|
||||
public void robotPeriodic() {
|
||||
// Creates a string to hold current robot state information, including
|
||||
// alliance, enabled state, operation mode, and match time. The message
|
||||
|
||||
@@ -50,7 +50,7 @@ public final class Constants {
|
||||
public static final double kWheelDiameterMeters = 0.15;
|
||||
public static final double kEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
(kWheelDiameterMeters * Math.PI) / (double) kEncoderCPR;
|
||||
(kWheelDiameterMeters * Math.PI) / kEncoderCPR;
|
||||
|
||||
// These are example values only - DO NOT USE THESE FOR YOUR OWN ROBOT!
|
||||
// These characterization values MUST be determined either experimentally or theoretically
|
||||
|
||||
@@ -30,7 +30,7 @@ public final class Constants {
|
||||
public static final double kWheelDiameterMeters = Units.inchesToMeters(6);
|
||||
public static final double kEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
(kWheelDiameterMeters * Math.PI) / (double) kEncoderCPR;
|
||||
(kWheelDiameterMeters * Math.PI) / kEncoderCPR;
|
||||
}
|
||||
|
||||
public static final class ShooterConstants {
|
||||
@@ -39,7 +39,7 @@ public final class Constants {
|
||||
public static final int kEncoderCPR = 1024;
|
||||
public static final double kEncoderDistancePerPulse =
|
||||
// Distance units will be rotations
|
||||
1.0 / (double) kEncoderCPR;
|
||||
1.0 / kEncoderCPR;
|
||||
|
||||
public static final int kShooterMotorPort = 4;
|
||||
public static final int kFeederMotorPort = 5;
|
||||
|
||||
@@ -84,11 +84,11 @@ public final class Constants {
|
||||
public static final double kWheelDiameterMeters = 0.15;
|
||||
public static final double kDriveEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
(kWheelDiameterMeters * Math.PI) / (double) kEncoderCPR;
|
||||
(kWheelDiameterMeters * Math.PI) / kEncoderCPR;
|
||||
|
||||
public static final double kTurningEncoderDistancePerPulse =
|
||||
// Assumes the encoders are on a 1:1 reduction with the module shaft.
|
||||
(2 * Math.PI) / (double) kEncoderCPR;
|
||||
(2 * Math.PI) / kEncoderCPR;
|
||||
|
||||
public static final double kPModuleTurningController = 1;
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ public final class Constants {
|
||||
public static final double kWheelDiameterMeters = Units.inchesToMeters(6);
|
||||
public static final double kEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
(kWheelDiameterMeters * Math.PI) / (double) kEncoderCPR;
|
||||
(kWheelDiameterMeters * Math.PI) / kEncoderCPR;
|
||||
}
|
||||
|
||||
public static final class ShooterConstants {
|
||||
@@ -39,7 +39,7 @@ public final class Constants {
|
||||
public static final int kEncoderCPR = 1024;
|
||||
public static final double kEncoderDistancePerPulse =
|
||||
// Distance units will be rotations
|
||||
1.0 / (double) kEncoderCPR;
|
||||
1.0 / kEncoderCPR;
|
||||
|
||||
public static final int kShooterMotorPort = 4;
|
||||
public static final int kFeederMotorPort = 5;
|
||||
|
||||
Reference in New Issue
Block a user