mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[hal, wpilib] Rewrite CAN APIs (#7798)
This commit is contained in:
@@ -30,7 +30,7 @@ class Intake : public frc2::SubsystemBase {
|
||||
frc::PWMSparkMax m_motor{IntakeConstants::kMotorPort};
|
||||
|
||||
// Double solenoid connected to two channels of a PCM with the default CAN ID
|
||||
frc::DoubleSolenoid m_piston{frc::PneumaticsModuleType::CTREPCM,
|
||||
frc::DoubleSolenoid m_piston{0, frc::PneumaticsModuleType::CTREPCM,
|
||||
IntakeConstants::kSolenoidPorts[0],
|
||||
IntakeConstants::kSolenoidPorts[1]};
|
||||
};
|
||||
|
||||
@@ -40,5 +40,5 @@ class Pneumatics : frc2::SubsystemBase {
|
||||
kScale, kOffset};
|
||||
|
||||
// Compressor connected to a PH with a default CAN ID
|
||||
frc::Compressor m_compressor{frc::PneumaticsModuleType::CTREPCM};
|
||||
frc::Compressor m_compressor{0, frc::PneumaticsModuleType::CTREPCM};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user