Thread
:
Speeding up and slowing down in autonomous
View Single Post
#
3
20-02-2014, 23:51
TFleig78
Registered User
AKA: Tyler
FRC #0078 (Air Strike)
Team Role: Programmer
Join Date: Jan 2013
Rookie Year: 2012
Location: Rhode Island
Posts: 58
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.
TFleig78
View Public Profile
Find all posts by TFleig78
Find CD-Media Photos by TFleig78
Find CD-Media Papers by TFleig78