Hi,
I am experiencing a problem when measuring angle
I am using this formula, so I get a 0 – 127 range
pitch = atan2(accele_x, accele_z) * 80.8507;
Things work ok, but if I move the sensor too quickly in the required direction, the motion data first takes off in the opposite direction before it reverses and then moves to the correct angle. Or perhaps it is overshooting and then coming back. The overall time to go in the wrong direction and then get back to where it should be, takes about 20mS. That’s a guess, but when applied to audio, I can hear the delay, so I guess it is at least 20mS.
At slower speeds the data moves in the correct direction.
The gyroscope responds in the correction direction regardless of how quick the sensor is moved.
It seems to be inherent within the sensor, but I wonder.
Regards
Tim