Advertisement

Whee! Gyro and Accelerometer!

  • Dave Mark
  • Jack Nutting
  • Jeff LaMarche

Abstract

One of the coolest features of the iPhone, iPad, and iPod touch is the built-in accelerometer—the tiny device that lets iOS know how the device is being held and if it’s being moved. iOS uses the accelerometer to handle autorotation, and many games use it as a control mechanism. The accelerometer can also be used to detect shakes and other sudden movement. This capability was extended even further with the introduction of the iPhone 4, which also includes a built-in gyroscope that lets you determine the angle at which the device is positioned around each axis. The gyro and accelerometer are now standard fare on all new iPads and iPod touches. In this chapter, we’re going to introduce you to the use of the Core Motion framework to access the gyro and accelerometer values in your application.

Keywords

Main Thread Sound File Motion Manager Project Archive Core Motion 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Dave Mark, Jack Nutting, Jeff LaMarche 2011

Authors and Affiliations

  • Dave Mark
  • Jack Nutting
  • Jeff LaMarche

There are no affiliations available

Personalised recommendations