Thread: Threading?
View Single Post
  #3   Spotlight this post!  
Unread 09-02-2016, 12:34
fireXtract fireXtract is offline
MegaHertz_Lux
FRC #2847 (Mega Hertz)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: fmt
Posts: 42
fireXtract is an unknown quantity at this point
Re: Threading?

Okay, I understand that we can leave the thread just running in the background, and the servo will move the first time we press the button, but I want to be able to press the button more than once per run of the robot. The way it is setup with your changed code I still run into the issue of only being able to kick the ball one time per power cycle. What can I do to fix that?

EDIT: Actually I pushed the code, and the second time I run the autoKick() method the code crashes with Illegal thread state errors.

Last edited by fireXtract : 09-02-2016 at 12:42.
Reply With Quote