Join Steven Lipton for an in-depth discussion in this video Model accelerometer movement, part of Advanced iOS App Development: Core Motion.
- [Instructor] There's two sensors we'll work with:…the accelerometer and the gyroscope.…The accelerometer measures acceleration in three dimensions,…measured in G's.…Core Motion Manager returns an accelerated data object…which has a structure CM acceleration…that gives us acceleration in X, Y, and Z.…For simplicity, I'm going to ignore Z for a while…to keep us two dimensional with X and Y.…Our fencing app will have two motions we describe…with the accelerometer.…The first is an attack or thrust.…
In fencing this is thrusting the foil or sword…directly into an opponent.…As a motion we can describe this as an acceleration…on the Y-axis.…At some value for acceleration, we'll consider it a thrust…and print that on the console.…This leads to an important question;…how much acceleration is a thrust…and how much is just putting your arm out?…In Core Motion you'll need real life values…to figure that out.…In our app, close the console.…In our app, go to start timer.…
Add the following to get all the user accelerations,…
- Reading Core Motion data
- Understanding Core Motion methods
- Creating a pedometer app
- Using pace and distance data from Core Motion
- Pushing and pulling device motion data
- Accessing the altitude sensors
- Working with the motion activity manager (CMMotionActivityManager)
Skill Level Advanced
iOS App Development: Accessibilitywith Kevin Favro2h 34m Intermediate
Advanced iOS Development: Working with APIswith Saul Mora1h 59m Intermediate
1. Core Motion Introduction
3. Device Motion
5. Recorded Data
Next steps1m 43s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.