Thread
:
Accelerometer Code Making Robot Stop Moving
View Single Post
#
3
16-02-2013, 10:40
progal
Programmer
AKA: Shelby
FRC #0384 (Sparky)
Team Role: Programmer
Join Date: Feb 2010
Rookie Year: 2009
Location: Glen Allen
Posts: 15
Re: Accelerometer Code Making Robot Stop Moving
Quote:
Originally Posted by
Alan Anderson
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
progal
View Public Profile
Find all posts by progal
Find CD-Media Photos by progal
Find CD-Media Papers by progal