[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

@@ -19,7 +19,7 @@ public class HatchSubsystem extends SubsystemBase {
private final DoubleSolenoid m_hatchSolenoid =
new DoubleSolenoid(
0,
PneumaticsModuleType.CTREPCM,
PneumaticsModuleType.CTRE_PCM,
HatchConstants.kHatchSolenoidPorts[0],
HatchConstants.kHatchSolenoidPorts[1]);

View File

@@ -18,7 +18,7 @@ public class HatchSubsystem extends SubsystemBase {
private final DoubleSolenoid m_hatchSolenoid =
new DoubleSolenoid(
0,
PneumaticsModuleType.CTREPCM,
PneumaticsModuleType.CTRE_PCM,
HatchConstants.kHatchSolenoidPorts[0],
HatchConstants.kHatchSolenoidPorts[1]);

View File

@@ -22,7 +22,7 @@ public class Intake extends SubsystemBase {
private final DoubleSolenoid m_pistons =
new DoubleSolenoid(
0,
PneumaticsModuleType.CTREPCM,
PneumaticsModuleType.CTRE_PCM,
IntakeConstants.kSolenoidPorts[0],
IntakeConstants.kSolenoidPorts[1]);

View File

@@ -25,7 +25,7 @@ public class Pneumatics extends SubsystemBase {
new AnalogPotentiometer(/* the AnalogIn port*/ 2, kScale, kOffset);
// Compressor connected to a PCM with a default CAN ID (0)
private final Compressor m_compressor = new Compressor(0, PneumaticsModuleType.CTREPCM);
private final Compressor m_compressor = new Compressor(0, PneumaticsModuleType.CTRE_PCM);
/**
* Query the analog pressure sensor.

View File

@@ -18,7 +18,7 @@ public class Intake implements AutoCloseable {
m_piston =
new DoubleSolenoid(
0,
PneumaticsModuleType.CTREPCM,
PneumaticsModuleType.CTRE_PCM,
IntakeConstants.kPistonFwdChannel,
IntakeConstants.kPistonRevChannel);
}

View File

@@ -28,15 +28,15 @@ public class Robot extends TimedRobot {
// Solenoid corresponds to a single solenoid.
// In this case, it's connected to channel 0 of a PH with the default CAN ID.
private final Solenoid m_solenoid = new Solenoid(0, PneumaticsModuleType.REVPH, 0);
private final Solenoid m_solenoid = new Solenoid(0, 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.
private final DoubleSolenoid m_doubleSolenoid =
new DoubleSolenoid(0, PneumaticsModuleType.REVPH, 1, 2);
new DoubleSolenoid(0, PneumaticsModuleType.REV_PH, 1, 2);
// Compressor connected to a PH with a default CAN ID (1)
private final Compressor m_compressor = new Compressor(0, PneumaticsModuleType.REVPH);
private final Compressor m_compressor = new Compressor(0, PneumaticsModuleType.REV_PH);
static final int kSolenoidButton = 1;
static final int kDoubleSolenoidForwardButton = 2;

View File

@@ -31,7 +31,7 @@ class IntakeTest {
IntakeConstants.kMotorPort); // create our simulation PWM motor controller
m_simPiston =
new DoubleSolenoidSim(
PneumaticsModuleType.CTREPCM,
PneumaticsModuleType.CTRE_PCM,
IntakeConstants.kPistonFwdChannel,
IntakeConstants.kPistonRevChannel); // create our simulation solenoid
}