Closed mcolinj closed 5 years ago
We have only a single PCM module with CAN ID 0. First argument to create doubleSolenoid is the module ID. Need to fix it. Maybe create a module constant PCM_CAN_ID = 0 and use that to be clear?
self.grabber = Grabber( hatch = wpilib.DoubleSolenoid(5, EXTEND_ID, RETRACT_ID)) #ball manipulator and controller self.ballManipulator = BallManipulator(ctre.WPI_TalonSRX(BALL_MANIP_ID)) self.ballManipulatorController = BallManipulatorController(self.operator, self.logger) #EXTEND HATCH GRABBER self.piston = extendPiston(piston=wpilib.DoubleSolenoid(4, PISTON_EXTEND_ID, PISTON_RETRACT_ID))
Read up about doublesolenoid objects here:
https://robotpy.readthedocs.io/projects/wpilib/en/latest/wpilib/DoubleSolenoid.html
We have only a single PCM module with CAN ID 0. First argument to create doubleSolenoid is the module ID. Need to fix it. Maybe create a module constant PCM_CAN_ID = 0 and use that to be clear?
HATCH GRABBER