mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilib] Rename PneumaticsModuleType constants
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
@@ -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]);
|
||||
|
||||
|
||||
@@ -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]);
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -18,7 +18,7 @@ public class Intake implements AutoCloseable {
|
||||
m_piston =
|
||||
new DoubleSolenoid(
|
||||
0,
|
||||
PneumaticsModuleType.CTREPCM,
|
||||
PneumaticsModuleType.CTRE_PCM,
|
||||
IntakeConstants.kPistonFwdChannel,
|
||||
IntakeConstants.kPistonRevChannel);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user