View Single Post
  #15   Spotlight this post!  
Unread 24-11-2015, 15:07
riftware riftware is offline
Parent Mentor
AKA: Andrew Chandler
FRC #0031
Team Role: Mentor
 
Join Date: Dec 2013
Rookie Year: 2011
Location: Tulsa
Posts: 27
riftware is an unknown quantity at this point
Re: Using encoder with talon SRX

Ok - I just re-ran through the document and didn't see it. Is there a recommended solution so the command only fires once per button push? I'm assuming I create a static flag and toggle it true at the beginning of execute and false when I'm done? I also assume my encoder position logic needs to enter a sleep/poll loop to determine when the command is really done? After which I can toggle the static busy flag to prevent the command from executing multiple times. Also this is borderline about encoders at this point if I need to grab a different thread let me know.
Reply With Quote