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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user