开发者

Device Motion in accelerated environment

开发者 https://www.devze.com 2023-04-07 02:58 出处:网络
I wrote an app which displays pitch and roll attitude (a glass cockpit app).When I rotate or tilt the iPhone/iPad the attitude is displayed accurately.When I\'m flying in an airplane and rotate or til

I wrote an app which displays pitch and roll attitude (a glass cockpit app). When I rotate or tilt the iPhone/iPad the attitude is displayed accurately. When I'm flying in an airplane and rotate or tilt the device it also displays accura开发者_C百科tely. Now, when I hold the device against the panel and roll the airplane, the attitude does not change accurately - it doesn't move at all. This is strange behavior to me and I wonder if it has something to do with the accelerations of the airplane affecting the output of the gyro in the device.

Any insight is appreciated.


Randy, a roll is a one-G maneuver, right? So there is no acceleration for the accelerometer in the phone to sense.

Watch Bob Hoover roll his Shrike while pouring a glass of iced tea from a pitcher.

0

精彩评论

暂无评论...
验证码 换一张
取 消