Hello,
I have a problem... One of our team's mentor decided that we would code our robot on a finite state machine format.
Our code is available here. However, we can't get any FSM working. Right now, we tested a FSM in BallControl.java. It is initialized in out teleop.java command, and the buttons and motors values are updated in the execute() function. The problem is that, when we enable teleop, it goes straight to state 1 (!). No buttons nor the limitSwitch can change this state. If we disable teleop and re-enable it, it stucks in state 0 (waiting), no buttons can change this state (!). Can someone please help us to correct this problem?
Alexandre Croteau (acrilex)
Head coder,
Team 5179 Sénateurs