I am currently working on the climbers for our team we are using climbers in a box with Falcon. Testing the code I am able to build it and deploy it; however, when I test the buttons nothing happens. I don’t see any errors.
I appreciate any help, thank you.
I think your climber command is never called in RobotContainer
It doesn’t look like you’re binding the climb command to any buttons in RobotContainer under the configureBindings method. Furthermore it isn’t set as a default command for the subsystem and there’s no periodic method in the climb subsystem class that polls for input, and nothing is called in the Robot periodic methods. I’d make a trigger object that checks if the absolute value of the analog input is above a certain threshold (usually 0 or some deadband) and then put the command under the object’s whileTrue method. The DoubleSupplier you would pass is the value of the analog input, no absolute value applied. You would put this Trigger object under configureBindings. Make sure to also register the subsystems with the command scheduler in the RobotContainer constructor.
Sorry, the way I published my code was weird and outdated. I think I updated it but I’ll check in the morning. Thank you for your help, I can still apply the information you’ve given me to my current code.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.