I have iPad first generation. But I should develop an application which requires gyroscope sensor feeds. How can I simulate gyroscope like I am rotating my iPad?
I have iPad first generation. But I should develop an application which requires gyroscope
Share
I don’t think we can do this.
If we could, then what is the point of implementing a gyroscope in iPhone4/4s and iPad in the first place?
If you accept an imperfect simulation, you can use the accelerometer to detect the rotation based on one axis only. Say for example, you put iPad with the monitor facing up (so now the y-axis is horizontal), now if you rotate iPad along with y-axis, you can detect the rotation with the changes of x and z values.