magnetometer

gyro, accelerometer, magnetometer and Kalman filter

僤鯓⒐⒋嵵緔 提交于 2019-11-28 04:26:07
I want to use gyro, accelermeter and magnetometer to get a full smooth rotation in 3 axis. The first problem is that my outputs individualy has very noise and I want to know how can I remove it. The second problem is the gyro drift that I think it should solve with Kalman filter. The third problem is the accelerometer. If I combine the gyro and accelermeter when I move the device without rotating the device the output will change. Is Kalman filter can remove the moving effect from output too? Ali the first problem is that my outputs individualy has very noise and i want to know how can i

CoreLocation heading base on back camera (Augmented reality)

删除回忆录丶 提交于 2019-11-27 18:38:22
I would like to create an augmented reality view that is going to point an object in a direction. However, the CoreLocation heading is not working correctly when you are facing upwards with your camera (say to a top of a 20-storeys building when you are on the ground floor). It is giving the opposite direction (probably the direction that is pointing by the top of the phone). I have tried a few methods to get it to work for the direction the camera is pointing, such as: 1, +180 degree when the device orientation is > 45 degree (not accurate enough, suddenly the direction goes off by 10~20

In iOS, what is the difference between the Magnetic Field values from the Core Location and Core Motion frameworks?

心已入冬 提交于 2019-11-27 16:52:52
I have two ways of getting the magnetic fields (strength, x, y, and z) using the iOS device's magnetometer. 1) Core Location Used the CLHeading from CLLocationManagerDelegate method locationManager:didUpdateHeading: . This is similar to Apple's Teslameter sample app. 2) Core Motion Used CMMagneticField from CMMotionManager 's magnetometerData.magneticField . Questions: a) What is the difference between the two? I am getting different values from both. I was expecting that they will return the same values. The difference is most notable when I start the app from a resting position (face up in a

gyro, accelerometer, magnetometer and Kalman filter

痞子三分冷 提交于 2019-11-27 00:25:54
问题 I want to use gyro, accelermeter and magnetometer to get a full smooth rotation in 3 axis. The first problem is that my outputs individualy has very noise and I want to know how can I remove it. The second problem is the gyro drift that I think it should solve with Kalman filter. The third problem is the accelerometer. If I combine the gyro and accelermeter when I move the device without rotating the device the output will change. Is Kalman filter can remove the moving effect from output too?

In iOS, what is the difference between the Magnetic Field values from the Core Location and Core Motion frameworks?

六眼飞鱼酱① 提交于 2019-11-26 18:46:52
问题 I have two ways of getting the magnetic fields (strength, x, y, and z) using the iOS device's magnetometer. 1) Core Location Used the CLHeading from CLLocationManagerDelegate method locationManager:didUpdateHeading: . This is similar to Apple's Teslameter sample app. 2) Core Motion Used CMMagneticField from CMMotionManager 's magnetometerData.magneticField . Questions: a) What is the difference between the two? I am getting different values from both. I was expecting that they will return the

Convert magnetic field X, Y, Z values from device into global reference frame

China☆狼群 提交于 2019-11-26 17:43:57
When you use TYPE_MAGNETOMETER sensor, you get X, Y, Z values of magnetic field strength in relation to the device orientation. What I want to get is to convert these values into global reference frame, clarifying: user takes the device, measure these values, than rotate the device for some degrees around any axis and gets ~the same values. Please, find similar questions below: Getting magnetic field values in global coordinates How can I get the magnetic field vector, independent of the device rotation? In this answer sample solution is described (it is for linear acceleration, but I think it

Convert magnetic field X, Y, Z values from device into global reference frame

不打扰是莪最后的温柔 提交于 2019-11-26 06:01:53
问题 When you use TYPE_MAGNETOMETER sensor, you get X, Y, Z values of magnetic field strength in relation to the device orientation. What I want to get is to convert these values into global reference frame, clarifying: user takes the device, measure these values, than rotate the device for some degrees around any axis and gets ~the same values. Please, find similar questions below: Getting magnetic field values in global coordinates How can I get the magnetic field vector, independent of the