|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Accelerometer Code Making Robot Stop Moving
I thought %d was for integers. Doesn't the GetAcceleration() method return a float?
|
|
#2
|
|||
|
|||
|
Re: Accelerometer Code Making Robot Stop Moving
in ADXL345_SPI.h, it says
Code:
virtual double GetAcceleration(Axes axis); |
|
#3
|
||||
|
||||
|
Re: Accelerometer Code Making Robot Stop Moving
Quote:
%f is for floats %i is for integers but the accelerometer values return a double as Sushena pointed out. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|