Accelerometer Example

View previous topic View next topic Go down

Accelerometer Example

Post  jj on Mon Nov 24, 2008 10:15 pm

Hi,

I've been looking over some of the sio2 accelerometer code. I'm attempting to control the ANGLE of a 3d object based on the accel input, and having some trouble. Could anyone provide some explanation of the smooth factors, and what's happening with them...

SMOOTH_Z = abs( tmp ) * SMOOTH_FACTOR;

thx

jj

Posts : 77
Join date : 2008-09-24

View user profile

Back to top Go down

Re: Accelerometer Example

Post  sw on Tue Nov 25, 2008 1:16 am

jj wrote:Hi,

I've been looking over some of the sio2 accelerometer code. I'm attempting to control the ANGLE of a 3d object based on the accel input, and having some trouble. Could anyone provide some explanation of the smooth factors, and what's happening with them...

SMOOTH_Z = abs( tmp ) * SMOOTH_FACTOR;

thx

you should write a example code to check the accel and learn how it works .
sio2->_SIO2window->accel->x
sio2->_SIO2window->accel->y
sio2->_SIO2window->accel->z
BTW: angle = sio2->_SIO2window->accel->x (y or z ) * 360 /(2 * P_I )
avatar
sw

Posts : 73
Join date : 2008-10-12

View user profile

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum