View Single Post
  #4   Spotlight this post!  
Unread 09-03-2011, 16:04
Owen Meaker Owen Meaker is offline
Registered User
FRC #4180
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kent, Washington
Posts: 17
Owen Meaker is an unknown quantity at this point
Re: Programming goofs!

Quote:
Originally Posted by WizenedEE View Post
I'm interested.. How did you change begin so that it would work just once? It seems like you'd just add "true" constants to the inputs of robot drive.
The reason the problem was ocurring was that I had made inputs from the dashboard to toggle controls. I had written the autonomous to use no inversions, but the drivers wanted forward and backwards inverted. my first solution was to have a "use inversion" set to false in begin, then set to true on entering teleop. this had the problem of only working once per power-on, and I didn't consider running two matches before powering the robot off. my second fix was moving the variable from begin to autonomous, so it would work everytime.