首页 > 移动平台 > 详细

iOS陀螺仪 参数意义

时间:2016-10-08 09:27:03      阅读:305      评论:0      收藏:0      [点我收藏+]

self.mManager = [[CMMotionManager alloc]init];

    self.mManager.deviceMotionUpdateInterval = 0.5;

    

    if (self.mManager.gyroAvailable) {

        [self.mManager startDeviceMotionUpdatesToQueue:[NSOperationQueue currentQueue] withHandler:^(CMDeviceMotion * _Nullable motion, NSError * _Nullable error) {

            NSLog(@"RotationRate X:%.2lf Y:%.2lf Z:%.2lf ",motion.userAcceleration.x,motion.userAcceleration.y,motion.userAcceleration.z);

        }];

    }

 

x轴 头 靠近 负数 Y参数
x轴 头 远离 正数

y轴 左侧 高 正数 X参数
y轴 右侧 高 负数

iOS陀螺仪 参数意义

原文:http://www.cnblogs.com/ceasar/p/5937313.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!