Questions tagged [gyroscope]

A gyroscope is a device for measuring or maintaining orientation, based on the principles of angular momentum. Modern high-end Mobile devices have been supplying this device.Thus, many uses are found in Android API and iOS API.

A gyroscope is a device for measuring or maintaining orientation, based on the principles of angular momentum. Mechanically, a gyroscope is a spinning wheel or disk in which the axle is free to assume any orientation. Although this orientation does not remain fixed, it changes in response to an external torque much less and in a different direction than it would without the large angular momentum associated with the disk's high rate of spin and moment of inertia. Since external torque is minimized by mounting the device in gimbals, its orientation remains nearly fixed, regardless of any motion of the platform on which it is mounted.

805 questions
11
votes
1 answer

How use raw Gryoscope Data °/s for calculating 3D rotation?

My question may seem trivial, but the more I read about it - the more confused I get... I have started a little project where I want to roughly track the movements of a rotating object. (A basketball to be precise) I have a 3-axis accelerometer…
Alex
  • 111
  • 1
  • 5
11
votes
2 answers

Get rotation and display in degrees

I need something very simple, but I could not find a suitable example to learn from. My sole purpose is the following: As the device is placed flat (on its back) on the desk, it should show 0 (or close to 0) for X and Y axis. When I lift it from…
Milkncookiez
  • 6,817
  • 10
  • 57
  • 96
11
votes
5 answers

How to update quaternion based on 3d gyro data?

I've got an initial quaternion , q0. And I get angular velocity measurments, I integrate the the velocities so I got 3 angles at 50Hz or so. How can make a quaternion based on the 3 angles? I can't just make 3 quaternions, can I? So to make it…
user3598726
  • 951
  • 2
  • 11
  • 27
11
votes
1 answer

Attitude change - angles and axis issue - quaternion math

I have an app that records angles as user is walking around an object, while pointing device (preferably) at the center of the object. Angle gets reset on user's command - so reference attitude gets reset. Using Euler angles produces Gimbal lock, so…
Andrei G.
  • 1,710
  • 1
  • 14
  • 23
11
votes
3 answers

How to emulate a gyroscope in an Android Emulator

I am trying to work on stuff related to a gyroscope. My phone does not have a built in gyroscope. Is there a way to include the gyroscope functionality in the emulator, at least make the emulator set in such a way that it behaves as if it had a real…
Code_Yoga
  • 2,968
  • 6
  • 30
  • 49
11
votes
3 answers

javascript 'deviceorientation' event - what sensors does it measure?

If I have a simple web page and script that looks like this:
a
b
g