Hey all. I’m having some trouble with a spike on our robot. The situation is that this one spike on our bot will move our belt to lift the balls to the shooter. Only instead of taking the solid “forward” function that the joystick trigger is tells to move when pressed, it rotates sporadically in tiny incriments. We’ve been watching the light and it flashes green on and off when it should be solid. We have other relays on our bot that work just fine. Here is a list of solutions that we have already tried:
- Changing channels on sidecar (We’ve tried every free slot and it produces the same effect. We even tested the channels beforehand and they worked fine with other spikes.)
- Changing Joystick buttons
- Changing spikes (New spike had same effect.)
- Changing every wire and cable
- Changing sidecars
- Switching channels with another spike (This lets the belt work but then the other spike starts acting up in the same way.)
- Checking for updates online for DS, cRIO, and Labview
- Various rewrites of the program
- Rebooting the entire system
The program is so simple that we don’t know why it’s acting like this especially when the other spikes with the exact same code work perfectly. We even tried plugging in a straight "forward"command into the spike and it spattered. We have also tried connecting a working spike’s joystick button to the belt’s so that they would both run when it was pressed. The one spike worked correctly like before but the belt still had the issue.
We are completely out of ideas and have no clue as to what is the problem. If anybody has any suggestions of things we haven’t tried please tell us. We are using a total of five spikes on the robot. Attached is our code and a picture of our teleop. The spike that is giving us trouble is the one labled “Feeder”.
I should also mention that the picture shows the “Feeder” spike sharing a button with our plucker. It is usually attached to button 1 on the joystick. The pic was taken during one of our debugging attempts.
2012 Robot Project.zip (2.55 MB)
2012 Robot Project.zip (2.55 MB)