你的位置:首页 > 软件开发 > 操作系统 > iOS陀螺仪 参数意义

iOS陀螺仪 参数意义

发布时间:2016-10-08 09:00:08
self.mManager = [[CMMotionManager alloc]init]; self.mManager.deviceMotionUpdateInterval = 0.5; if (self.mManager.gyr ...

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参数

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:iOS陀螺仪 参数意义

关键词:IOS

IOS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。