We are trying to use the gyro , i have read about it, and i have this code running :
-(void)acceleratedInX:(float)xx Y:(float)yy Z:(float)zz
{
NSLog(@"%f",xx); //x value
NSLog(@"%f",yy); //y value
NSLog(@"%f",zz);
}
i know that xcode should update this function when i put it on my delegate.
i just want to print up the x,y,z values
BUT its not happening..i dont get the NSLog, so the function isnt being called.
any help would be great
thanks a lot .
You need to set up the update interval.
Your header should look like this:
At the top of your .m declare this constant:
in your viewDidLoad:
then your listening method:
Also eventually you will have to put smoothing code in otherwise the accel is really jittery.