View Single Post
  #1   Spotlight this post!  
Unread 02-02-2016, 09:20
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
Finite state machine problem

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
Reply With Quote