[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

@@ -56,7 +56,7 @@ class Arm:
30,
wpimath.units.radiansToDegrees(self.armSim.getAngle()),
6,
wpiutil.Color8Bit(wpiutil.Color.kYellow),
wpiutil.Color8Bit(wpiutil.Color.YELLOW),
)
# Subsystem constructor.
@@ -64,7 +64,7 @@ class Arm:
# Put Mechanism 2d to SmartDashboard
wpilib.SmartDashboard.putData("Arm Sim", self.mech2d)
self.armTower.setColor(wpiutil.Color8Bit(wpiutil.Color.kBlue))
self.armTower.setColor(wpiutil.Color8Bit(wpiutil.Color.BLUE))
# Set the Arm position setpoint and P constant to Preferences if the keys don't already exist
wpilib.Preferences.initDouble(

View File

@@ -42,7 +42,7 @@ class MyRobot(wpilib.TimedRobot):
"elevator", self.kElevatorMinimumLength, 90
)
self.wrist = self.elevator.appendLigament(
"wrist", 0.5, 90, 6, wpiutil.Color8Bit(wpiutil.Color.kPurple)
"wrist", 0.5, 90, 6, wpiutil.Color8Bit(wpiutil.Color.PURPLE)
)
# post the mechanism to the dashboard