JB Gyro App

From CSclasswiki
Jump to: navigation, search

CoreMotion Class

This is the general class that handles events from the device's gyroscope.

To Use Gyroscope

CMMotionManager *motionManager;

Once you have everything initialized in memory, send a message to the motion manager that you want to start receiving updates:

[motionManager startGyroUpdates]; 

This means that, at regular intervals, you will receive CMGyroData objects.



- CMRotationRate rotationRate

A CMRotationRate is an object that consists of three doubles: x, y, and z. These are measurements of the device’s rate of rotation (in radians per second) around the appropriate axes.

What is the difference between the Gyroscope and the Accelerometer?

All your answers may be found here