[wpilib] Rename DoubleSolenoid.Value constants to all caps

This commit is contained in:
Peter Johnson
2026-03-17 17:10:58 -07:00
parent c5738fcbad
commit d86a745328
32 changed files with 155 additions and 155 deletions

View File

@@ -23,11 +23,11 @@ class HatchSubsystem(commands2.Subsystem):
def grabHatch(self) -> commands2.Command:
"""Grabs the hatch"""
return commands2.cmd.runOnce(
lambda: self.hatchSolenoid.set(wpilib.DoubleSolenoid.Value.kForward), self
lambda: self.hatchSolenoid.set(wpilib.DoubleSolenoid.Value.FORWARD), self
)
def releaseHatch(self) -> commands2.Command:
"""Releases the hatch"""
return commands2.cmd.runOnce(
lambda: self.hatchSolenoid.set(wpilib.DoubleSolenoid.Value.kReverse), self
lambda: self.hatchSolenoid.set(wpilib.DoubleSolenoid.Value.REVERSE), self
)