DevilBotz2876 / ChargedUp2023

Code for the FRC 2023 Robotics Competition
Other
3 stars 0 forks source link

Switched from REV to CTRE PCM #156

Closed BrownGenius closed 1 year ago

BrownGenius commented 1 year ago

The Competition Bot's REV pneumatics control module (PCM) was faulty, so was switched with the CTRE PCM. This required changes to the code.

BrownGenius commented 1 year ago

@ParkerMeyers, was there a reason we were using REV's PneumaticHub API instead of the WPILib Compressor API? @rekhask, I think I solved the CAN ID issue. The default CAN ID for the PCM is "0" but we changed it to "6", so I explicitly pass in the CAN ID when creating the DoubleSolenoid. We will have to test on the actual bot on Monday.

ParkerMeyers commented 1 year ago

0 should be reserved for the PDP. And yes, the old PCM had a broken can bus but this one should work fine.

ParkerMeyers commented 1 year ago

@ParkerMeyers, was there a reason we were using REV's PneumaticHub API instead of the WPILib Compressor API? @rekhask, I think I solved the CAN ID issue. The default CAN ID for the PCM is "0" but we changed it to "6", so I explicitly pass in the CAN ID when creating the DoubleSolenoid. We will have to test on the actual bot on Monday.

The REV API was what it was designed to work with, I am not sure if it works with the normal compressor api

BrownGenius commented 1 year ago

We still have to test the branch!