Questions tagged [cmattitude]

9 questions
3
votes
1 answer

Adjust Acceleration Data to Global Frame of Reference

Working with Core Motion the acceleration appears to always be returned with respect to the device. Meaning if you shake the device screen up it will be in the +/-Z (depending on initial reference) if you then turn the device to the side and shake…
utahwithak
  • 6,235
  • 2
  • 40
  • 62
2
votes
0 answers

How to initialize CMAttitude

Quick question. I want the user to hold the iPhone upright and reset this orientation. I do this by using currentAttitude.multiply(byInverseOf attitude: resetAttitude) resetAttitude is being saved as soon as the user presses the "reset Button". Now…
1
vote
1 answer

Absolute rotation rates

On iOS with CMDeviceMotion, I can get the device CMAttitude and its CMRotationRate. The rotation rates are in the local device coordinate system (x,y,z). For a given CMAttitude, how can I determine the absolute rotation rates, i.e., the rates of…
Ze Jibe
  • 989
  • 2
  • 11
  • 29
1
vote
0 answers

Get reference frame with y axis pointing to magnetic north

With CoreMotion, is it possible to get a reference frame with the Y axis pointing to magnetic north? I would like to make the readings similiar to the ones from Android, which has the Y axis pointing to magnetic north. Thanks in advance.
adriank
  • 143
  • 11
1
vote
0 answers

Compass unstable when iPhone is vertical

When a button is pressed with the iPhone held vertically in portrait mode, I am recording a compass magnetic heading - a live camera feed having been displayed with crosshairs. GPS, camera (medium preset), compass and attitude sensing are all going…
BillF
  • 1,034
  • 3
  • 13
  • 28
1
vote
0 answers

iOS Gyroscope normalization

I have to write here the question because I could not find the answer anywhere. My math level is not good, I can do but I have difficulties. My problem is sort of simple: Im developing an app that show pitch/yaw/roll, so I began to use the Core…
0
votes
1 answer

How can I find the initial CMAttitude to normalize subsequent queued device motion attitude pulls?

I have a simple Swift motion tracking app that pulls the triaxial rotation rate and attitude of the phone. I am trying to normalize the attitude using multiply(byInverseOf: ) with the initial attitude as reference. Currently initialAttitude is…
0
votes
1 answer

Is Sensor.TYPE_LINEAR_ACCELERATION in Android same as userAcceleration in IOS

Hi I was wondering if the readings you get from TYPE_LINEAR_ACCELERATION which are the accelerometer readings without gravity the equivalent of the readings you get from userAcceleration in IOS. From what I can see they are the accelerometer…
aflofo
  • 1
  • 3
0
votes
1 answer

Absolute yaw on iOS device

I want to now rotation delta of two devices. I try to use CMDeviceMotion's attitude.yaw. let motionManager = CMMotionManager(); motionManager.showsDeviceMovementDisplay = true motionManager.deviceMotionUpdateInterval = 1 / 25 if…
AlKozin
  • 904
  • 8
  • 25