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