|
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.
|