From the course: Advanced iOS App Development: Core Motion

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Signal and noise motion

Signal and noise motion - iOS Tutorial

From the course: Advanced iOS App Development: Core Motion

Start my 1-month free trial

Signal and noise motion

- [Instructor] The second motion we want for our fencing app is a parry, or block. This is a side-to-side motion that blocks the opponent's foil. We'll model this as a positive or negative value of x. As we did for thrust, we'll look at the data first. Close the console and print the x-data, the console. So before the y, we'll put x, colon, space, and again percent seven point four, space, and then add Excel x, and we're ready to run, so wake up your phone, and run. Start by running the phone width on your desk. Pick up the phone and hold it in place for a second or two. Move it back and forth from one shoulder to the other. Go ahead and stop and take a look at the data. If you go back through the data, you'll see values that greater than zero point one and less than zero point one are the side-to-side motions. When we looked at thrust, there was a very big number. That made it obvious that we were thrusting. In most applications, it's not that easy. The noise, the data that doesn't…

Contents