Re: What does CMDeviceMotion do if there is no gyro?
Re: What does CMDeviceMotion do if there is no gyro?
- Subject: Re: What does CMDeviceMotion do if there is no gyro?
- From: Matt Neuburg <email@hidden>
- Date: Wed, 14 Sep 2011 11:46:57 -0700
On Tue, 13 Sep 2011 14:39:29 -0700, James Walker <email@hidden> said:
>The CMDeviceMotion Class Reference says "Because Core Motion is able to
>track a devices attitude using both the gyroscope and the
>accelerometer, it can differentiate between gravity and user
>acceleration." But what does it do if the device does not have a
>gyroscope
If the device lacks a gyroscope, the question doesn't arise - isDeviceMotionAvailable returns NO, device-motion services will be unavailable, and you're back to dealing directly with the accelerometer and interpreting it yourself. m.
--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden