Thread: Auto won't run
View Single Post
  #6   Spotlight this post!  
Unread 12-02-2015, 21:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Auto won't run

Quote:
Originally Posted by dubiousSwain View Post
After the pistons clamp, it doesn't move to the next part of the flat sequence structure. Can anyone spot the problem? I've been looking at it for the past hour.
Your "Turn 90 degrees" frame sets the drive state to 4, which I see is supposed to turn at 30% power. But then it immediately sets the state to 3 while it waits for the turn to complete. I assume drive state 3 just sits there doing nothing. Get rid of that extraneous 3 -> State3 underneath the gyro angle indicator in the while loop.

(I suggest that you move the frame labels from above the flat sequence to actually inside the frames they are labeling. That way they will stay connected to the code they are describing if you ever rearrange things.)
Reply With Quote