Thread: Code Failing
View Single Post
  #6   Spotlight this post!  
Unread 20-01-2012, 21:30
nickpeq nickpeq is offline
Turing-complete
FRC #1255 (Blarglefish)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Baytown, TX
Posts: 60
nickpeq is an unknown quantity at this point
Re: Code Failing

getThrottle() returning 0 actually is normal in my experience. Try using getY() instead. (Or go into your controller's settings on your computer and investigate which axes are what)
And, I think you're inputting values out of range. tankDrive should take numbers -1 to 1. (2 is out of range)
And if your robot is normal, a value of -1 or 1 will send your robot speeding towards you before you can disable it.

Last edited by nickpeq : 20-01-2012 at 21:33.
Reply With Quote