Accelerometer Example
2 posters
Accelerometer Example
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
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
Re: Accelerometer Example
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- Posts : 73
Join date : 2008-10-12
Similar topics
» Use accelerometer in Simulator
» Accelerometer measurements
» accelerometer helping tool
» accelerometer (How can I make them work just the oposite?)
» Accelerometer measurements
» accelerometer helping tool
» accelerometer (How can I make them work just the oposite?)
Permissions in this forum:
You cannot reply to topics in this forum