[wpiutil] Rename Color constants to all caps

This commit is contained in:
Peter Johnson
2026-03-15 20:46:45 -07:00
parent 8af6bd354e
commit e5107e7e00
19 changed files with 1109 additions and 1112 deletions

View File

@@ -67,7 +67,7 @@ public class Arm implements AutoCloseable {
30,
Units.radiansToDegrees(m_armSim.getAngle()),
6,
new Color8Bit(Color.kYellow)));
new Color8Bit(Color.YELLOW)));
/** Subsystem constructor. */
public Arm() {
@@ -75,7 +75,7 @@ public class Arm implements AutoCloseable {
// Put Mechanism 2d to SmartDashboard
SmartDashboard.putData("Arm Sim", m_mech2d);
m_armTower.setColor(new Color8Bit(Color.kBlue));
m_armTower.setColor(new Color8Bit(Color.BLUE));
// Set the Arm position setpoint and P constant to Preferences if the keys don't already exist
Preferences.initDouble(Constants.kArmPositionKey, m_armSetpointDegrees);

View File

@@ -50,7 +50,7 @@ public class Robot extends TimedRobot {
m_elevator = root.append(new MechanismLigament2d("elevator", kElevatorMinimumLength, 90));
m_wrist =
m_elevator.append(
new MechanismLigament2d("wrist", 0.5, 90, 6, new Color8Bit(Color.kPurple)));
new MechanismLigament2d("wrist", 0.5, 90, 6, new Color8Bit(Color.PURPLE)));
// post the mechanism to the dashboard
SmartDashboard.putData("Mech2d", mech);