mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpiutil] Rename Color constants to all caps
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user