I’m working on a program for a robot that needs to score in a trough during autonomous skills. The robot should open its gate when over the trough to dispense the sacks. The code works perfectly on one trough, but not on another even though the code is exactly the same. When the robot goes to score in the second trough, and the gate should open in the code, the gate motors simply make noise and don’t really move substantially, sort of a vibration. After this point, the robot moves backwards and the gate is again told to open. The gate opens after the robot backs up but not while it should be scoring, why doesn’t the gate open? The gate motors are perfectly able to open the gate at this point as we have tested numerous times by running a separate autonomous while the robot is in the same position and the gate opens perfectly. I have attached the code. BTW the code to open the gate does work I have tested it solo and it works perfectly.
Skills Program.zip (118 KB)
I’ll take a look at you and get back to you shortly.