View Single Post
  #2   Spotlight this post!  
Unread 16-02-2014, 09:02
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Attached Thumbnails
Click image for larger version

Name:	From Clipboard.jpg
Views:	42
Size:	426.5 KB
ID:	16250  

Last edited by Greg McKaskle : 16-02-2014 at 09:26. Reason: Trying to attach the image
Reply With Quote