Join Steven Lipton for an in-depth discussion in this video Attitude and device orientation, part of Advanced iOS App Development: Core Motion.
- [Instructor] The gyroscope measures rotation rate.…That's how fast we are swinging…but does not directly measure rotation,…which we call attitude.…Device motion can calculate attitude…for us based on sensor data and a reference frame.…A reference frame is a state of the phone…at the start of updates.…Some applications require a reference frame, some don't.…Close the console.…Go up to the line…in myDeviceMotion.…StartDeviceMotionUpdates.…
Delete the method there and start typing it again.…Start capital 'Dev.'…That should leave you…with the four options we talked before.…Select the one with using for a parameter.…For that parameter just press the period.…You'll see the enumeration values.…There are four of them.…All assumes 'Z' is vertical.…The xArbitratyZVertical has an 'X' axis pointed…in the arbitrary direction.…The corrected vertical uses the magnetometer…to correct for rotation errors…but it takes more power to do so.…
The magnetic north orients the 'X' axis to magnetic north…or true north.…This is all for getting compass directions right.…
- 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.