I am trying to replicate the acceleration calculation like the application "Dynolicious" but I'm not sure where to head to calculate this. Do I use Core Motion
or do I do calculations using other numbers?
I have tried using Core Motion
's userAcceleraion
value, but it is not coming out at all like what I'm looking for.
coreMotion = [[CMMotionManager alloc]init];
[coreMotion startDeviceMotionUpdates];
//then every second it updates my label...
NSString *accel = [NSString stringWithFormat:@"%f", [[coreMotion accelerometerData]acceleration].x];
accelerationLabel.text = accel;
i.e. I want my values to come out like 0.4, -0.4, etc.