[wpilib] Rename PneumaticsModuleType constants

This commit is contained in:
Peter Johnson
2026-03-19 21:32:48 -07:00
parent f060c98992
commit ea32c247db
44 changed files with 142 additions and 137 deletions

View File

@@ -44,16 +44,16 @@ class Robot : public wpi::TimedRobot {
// Solenoid corresponds to a single solenoid.
// In this case, it's connected to channel 0 of a PH with the default CAN
// ID.
wpi::Solenoid m_solenoid{0, wpi::PneumaticsModuleType::REVPH, 0};
wpi::Solenoid m_solenoid{0, wpi::PneumaticsModuleType::REV_PH, 0};
// DoubleSolenoid corresponds to a double solenoid.
// In this case, it's connected to channels 1 and 2 of a PH with the default
// CAN ID.
wpi::DoubleSolenoid m_doubleSolenoid{0, wpi::PneumaticsModuleType::REVPH, 1,
wpi::DoubleSolenoid m_doubleSolenoid{0, wpi::PneumaticsModuleType::REV_PH, 1,
2};
// Compressor connected to a PH with a default CAN ID
wpi::Compressor m_compressor{0, wpi::PneumaticsModuleType::REVPH};
wpi::Compressor m_compressor{0, wpi::PneumaticsModuleType::REV_PH};
static constexpr int kSolenoidButton = 1;
static constexpr int kDoubleSolenoidForward = 2;