Working over constants to make the new ALL_CAPS style
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
package first.robot.constants;
|
||||
|
||||
public class DrivetrainConstants {
|
||||
public static final int kFrontLeftPWM = 0;
|
||||
public static final int kRearLeftPWM = 1;
|
||||
public static final int kFrontRightPWM = 2;
|
||||
public static final int kRearRightPWM = 3;
|
||||
public static final int FRONT_LEFT_PWM = 0;
|
||||
public static final int REAR_LEFT_PWM = 1;
|
||||
public static final int FRONT_RIGHT_PWM = 2;
|
||||
public static final int REAR_RIGHT_PWM = 3;
|
||||
|
||||
public static final double kSlowModeMultiplier = .75;
|
||||
public static final double SLOW_MODE_MULTIPLIER = .75;
|
||||
|
||||
public static final boolean kInvertForwardBackward = true;
|
||||
public static final boolean kInvertLeftRight = true;
|
||||
public static final boolean INVERT_FORWARD_BACKWARD = true;
|
||||
public static final boolean INVERT_LEFT_RIGHT = true;
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package first.robot.constants;
|
||||
|
||||
public class LEDConstants {
|
||||
public static final int kLEDPWM = 8;
|
||||
public static final int LED_PWM = 8;
|
||||
|
||||
public static final int kNumLEDs = 19 * 2 + 12 * 2;
|
||||
public static final int NUM_LEDS = 19 * 2 + 12 * 2;
|
||||
|
||||
public static final double kRainbowUpdateRate = .02;
|
||||
public static final double kBreathingUpdateRate = .03;
|
||||
public static final double kBreathingMinPercentage = 25;
|
||||
public static final double kBreathingMaxPercentage = 100;
|
||||
public static final double kAnimationManagerUpdateRate = .01;
|
||||
public static final double RAINBOW_UPDATE_RATE = .02;
|
||||
public static final double BREATHING_UPDATE_RATE = .03;
|
||||
public static final double BREATHING_MIN_PERCENTAGE = 25;
|
||||
public static final double BREATHING_MAX_PERCENTAGE = 100;
|
||||
public static final double ANIMATION_MANAGER_UPDATE_RATE = .01;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package first.robot.constants;
|
||||
|
||||
public class OIConstants {
|
||||
public static final int kDriverUSB = 0;
|
||||
public static final int DRIVER_USB = 0;
|
||||
}
|
||||
|
||||
@@ -3,10 +3,10 @@ package first.robot.constants;
|
||||
import org.wpilib.hardware.bus.SerialPort;
|
||||
|
||||
public class PusherConstants {
|
||||
public static final int kBaudRate = 9600;
|
||||
public static final int BAUD_RATE = 9600;
|
||||
|
||||
public static final SerialPort.Port kPort = SerialPort.Port.USB;
|
||||
public static final SerialPort.Port PORT = SerialPort.Port.USB;
|
||||
|
||||
public static final String kStopString = "s0~";
|
||||
public static final String kSpinString = "s-250~";
|
||||
public static final String STOP_STRING = "s0~";
|
||||
public static final String SPIN_STRING = "s-250~";
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package first.robot.constants;
|
||||
import org.wpilib.hardware.bus.CANPort;
|
||||
|
||||
public class ShooterConstants {
|
||||
public static final CANPort kShooterCANPort = CANPort.CAN_S0;
|
||||
public static final int kFrontShooterCAN = 1;
|
||||
public static final int kRearShooterCAN = 2;
|
||||
public static final CANPort SHOOTER_CAN_PORT = CANPort.CAN_S0;
|
||||
public static final int FRONT_SHOOTER_CAN = 1;
|
||||
public static final int REAR_SHOOTER_CAN = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user