View Single Post
  #3   Spotlight this post!  
Unread 16-02-2013, 10:40
progal's Avatar
progal progal is offline
Programmer
AKA: Shelby
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Glen Allen
Posts: 15
progal is an unknown quantity at this point
Re: Accelerometer Code Making Robot Stop Moving

Quote:
Originally Posted by Alan Anderson View Post
I thought %d was for integers. Doesn't the GetAcceleration() method return a float?
%d is for doubles
%f is for floats
%i is for integers

but the accelerometer values return a double as Sushena pointed out.
__________________

C++ Programmer
Reply With Quote