View Single Post
  #3   Spotlight this post!  
Unread 02-02-2016, 10:58
acrilex acrilex is offline
Registered User
AKA: Alexandre Croteau
FRC #5179 (Sénateurs)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Drummondville, QC, CA
Posts: 9
acrilex is an unknown quantity at this point
Re: Finite state machine problem

Thank you,

I applied your reccomendations, but I'm worried about one. You said we should move the BallControl.FSM() to Teleop.java's execute function, but wouldn't moving it there make the code stuck on this statement? I think it would execute the first iteration, being stuck at BallControl.FSM() until this command finishes to execute (should never happen if I'm not wrong...), in a kind of infinite loop. I commited your changes and another typo my mentor just pointed out, which was most likely the main problem (in case 0, I typed else if(grabButton = true) insteed of == ). I will get back to you when I test the code during my lunch time.

Alexandre Croteau (acrilex)
Head coder,
Team 5179
Reply With Quote