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
0
votes
2 answers

how to use iOS accelerometer without UIAccelerometerDelegate

Is it possible to request the values of the Accelerometer/Gyroscope without using continuous delegation (like using UIAccelerometerDelegate or something like CMMotionManager startGyroUpdatesToQueue)? I mean, I want to request the values for x, y and…
Philipp Li
  • 499
  • 6
  • 22
0
votes
1 answer

How to run windows phone 8 gyroscope in the background?

I am trying to create a windows phone 8 application that uses gyroscope. I would like to run this application in the background. How can I do that?
0
votes
2 answers

Android accelerotmeter - detecting a person turning

I have started to play with interacting with the accelerometer and had an interesting question. Is there a way to reliably detect if a user is turning on the spot with the phone - and how much (e.g. degrees)? I tried looking it up and did not find…
amirsk
  • 11
  • 1
  • 6
0
votes
2 answers

16 bit value in 2's compliment, confusing

I am working on reading data from a gyroscope and I am getting the data back just fine but the values are not as expected. I am thinking this is due to an error in my coding after searching around for a solution I came up with a post HERE that…
Yamaha32088
  • 4,125
  • 9
  • 46
  • 97
0
votes
0 answers

cant work with gyroscope in Android

Im trying to work with gyroscope in Android. this is my code //on the onCreate method sensor = (SensorManager) getSystemService(SENSOR_SERVICE); //the on onSensorChanged method @Override public void onSensorChanged(SensorEvent event) { …
touti
  • 1,164
  • 6
  • 18
0
votes
2 answers

Determine if device has moved

How can I determine whether an Android device has moved? By "moved", I mean that if it is laying still on a table and someone picks it up, I can detect that it has moved. I was thinking of using the gyroscope sensor but am not sure if that is the…
Johann
  • 27,536
  • 39
  • 165
  • 279
0
votes
1 answer

The result of gyroscope sensor Android

I just did my project for getting data gyroscope sensor. If I put my handphone on the table horizontally, the result of gyroscope sensor are : Roll (X) : 5.326322E-7 Pitch (Y) : 5.326322E-7 Yaw (Z) : 5.326322E-7 Logically, the result should be 0,…
user2080041
  • 85
  • 2
  • 7
0
votes
0 answers

Updating sprite positions from gyroscope parameters in iphone

I'm trying to update the position of an image sprite in cocos2d by using pitch, roll, and yaw values from gyroscope(like in the iphone app 'skyview'). How can do that? I just want the relation between X and Y positions and the 3 parameters(pitch,…
jjpp
  • 1,298
  • 1
  • 15
  • 31
0
votes
3 answers

Gyroscope using Cocos2d-x

Does Cocos2d-x gives support for using gyroscope? And if it isn't, then how can i use it?
0
votes
0 answers

Why can't specify sensor delay for gyroscope

As we know we can specify the sensor delay as an absolute value (in microseconds) above Android 3.0 (API Level 11) from this link. I tried it for accelerometers, it really worked. I set the time delay for 2s, and the interval showing the…
Allen Jee
  • 719
  • 2
  • 7
  • 14
0
votes
1 answer

Gyroscope/Compass and Device Orientation

I'm making a compass app for Android and I've managed to capture the azimuth by using the gyroscope, accelerometer, and magnetometer (see here for the tutorial I used). Unfortunately, the compass reading only functions when the device is placed…
0
votes
1 answer

Android Permissions - Gyroscope-support with OpenGL ES2

I added a require gyroscope and OpenGL ES2 support to my Android manifest, and it seems that many more devices than should be are now eliminated on the market. Does anyone know why the Motorola Droid4 on ICS does not support the gyroscope? The…
ina
  • 19,167
  • 39
  • 122
  • 201
0
votes
2 answers

Do I need to use NSTimer to get data from gyroscope iOS?

Right now I'm using the following code to get Euler values from the device's gyroscope. Is this how it's supposed to be used? Or is there a better way without using NSTimer? - (void)viewDidLoad { [super viewDidLoad]; CMMotionManager *motionManger =…
thisiscrazy4
  • 1,905
  • 8
  • 35
  • 58
0
votes
4 answers

iPhone held "upwards" or is laying on a table

How do I have to use the accelerometer / gyroscope in objective-c in order to find out if... A) the iPhone is held just in front of the users face, i.e. it is held "upwards" or B) the iPhone has been put for instance on a table, i.e. the display is…
itsame69
  • 1,540
  • 5
  • 17
  • 37
0
votes
1 answer

measure distance travelled by iphone without using gps

Possible Duplicate: Need to find Distance using Gyro+Accelerometer Android accelerometer accuracy (Inertial navigation) I am developing an iOS app that measures the distance moved, for example, one could keep the iPhone in one's pocket after…
Sonu Jha
  • 719
  • 3
  • 13
  • 23