FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Accelerometer Example

2 posters

Go down

Accelerometer Example Empty Accelerometer Example

Post  jj 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

Back to top Go down

Accelerometer Example Empty Re: Accelerometer Example

Post  sw 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 )
sw
sw

Posts : 73
Join date : 2008-10-12

Back to top Go down

Back to top


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