I found the reason why the rotation is slow. the WindowOrientationListener is doing lowpass filter the current angle with the previous angle by weight alpha like, new angle = alpah*current angle by motion sensor output + (1-alpha) * the previous angle.
for some reason, the weight alpha is so small and it makes the anlge change small and it result in reaching slow to the rotation threshold. 2010/8/25 chungae9ri <[email protected]> > Hi, all > I am working on sensors and the problem is that it takes about 5 sec > to rotate the screen. > I checked the speed of getting(polling) sensor data, change speed of > sensor data(x, y, z) when I rotate the Handset and they are all good. > Maybe the android Frameworks is the key to the delay of rotation. > How can I debug/fix it? > > -- > unsubscribe: > [email protected]<android-porting%[email protected]> > website: http://groups.google.com/group/android-porting > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
