View Single Post
  #3   Spotlight this post!  
Unread 20-02-2014, 23:51
TFleig78's Avatar
TFleig78 TFleig78 is offline
Registered User
AKA: Tyler
FRC #0078 (Air Strike)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Rhode Island
Posts: 58
TFleig78 will become famous soon enoughTFleig78 will become famous soon enough
Re: Speeding up and slowing down in autonomous

You're performing integer division. When you divide an int by a larger int, you get 0. Java gets rid of the decimal portion of the number. Try making i a double instead of an int.
Reply With Quote