|
Re: Help with buttons and periodic tasks
I don't know that I can explain all of the symptoms, but your screenshot shows that it is possible for the code to send different commands to the motor in parallel or one after the other. Just as you have used the ?: select statement to choose between 0 and 0.2 for one button, you can cascade them for additional buttons. The attachment shows some edits. Hopefully this makes sense.
My suspicion is that other areas in the code are also setting ShootArm. If you ctl-F and search for that string, it will help you find them. Consider how you would combine them so that your motors aren't responding to conflicting directions shouted from different areas of the code. Of course I'm just guessing that this may be going on.
Anyway, please make the edits and look for similar issues in teleop and other areas of the code. Post if you have questions.
Greg McKaskle
Last edited by Greg McKaskle : 16-02-2014 at 09:26.
Reason: Trying to attach the image
|