compass-geolocation

iPhone Compass GPS Direction

走远了吗. 提交于 2019-11-27 04:43:40
I'm trying to develop an application that use the GPS and Compass of the iPhone in order to point some sort of pointer to a specific location (like the compass always point to the North). The location is fixed and I always need the pointer to point to that specific location no matter where the user is located. I have the Lat/Long coordinates of this location but not sure how can I point to that location using the Compass and the GPS... just like http://www.youtube.com/watch?v=iC0Xn8hY80w this link 1:20' I write some code, however, it can't rotate right direction. -(float) angleToRadians:

Compensating compass lag with the gyroscope on iPhone 4

 ̄綄美尐妖づ 提交于 2019-11-27 04:11:02
问题 I've been experimenting with the compass and gyroscope on iPhone 4 and would like some help with an issue I'm having. I want to compensate for the slowness of the compass by using data from the gyroscope. Using CMMotionManager and its CMDeviceMotion object ( motionManager.deviceMotion ), I get the CMAttitude object. Correct me if I'm wrong (please), but here is what I've deduced from the CMAttitude object's yaw property (I don't need pitch nor roll for my purposes): yaw ranges from 0 to PI

Android getOrientation Azimuth gets polluted when phone is tilted

这一生的挚爱 提交于 2019-11-27 01:30:36
I'm having a really annoying problem with a AR view acting like a compass. So when I hold the phone in portrait (so that the screen is pointing to my face), then I call the remapCoordinateSystem that the pitch is 0 when holding it portrait. Then the azimuth (compass functionality) is perfect, but as soon as I tilt the phone the azimuth gets ruined, if I bend forward the azimuth increases and if I bend backwards it decreases. I use 2 sensors to get the readings, Sensor.TYPE_MAGNETIC_FIELD and Sensor.TYPE_GRAVITY . I use a lowpassfilter which is pretty basic, it's implemented with an alpha

Point to location using compass

大城市里の小女人 提交于 2019-11-26 20:29:28
问题 I am trying to develop a compass for an appliation which has a set of annotations on a map. I would like to be able to choose an annotation and then have the compass point the user to the chosen location. I have calculated the degress from the user's location to the location of the annotation and I have the magnetic heading and the true heading of the iPhone. Also I know how to rotate an image. But I can't figure out what the next step is. The degrees between the user's location and the

Get direction (compass) with two longitude/latitude points

六眼飞鱼酱① 提交于 2019-11-26 15:36:07
问题 I'm working on a "compass" for a mobile-device. I have the following points: point 1 (current location): Latitude = 47.2246, Longitude = 8.8257 point 2 (target location): Latitude = 50.9246, Longitude = 10.2257 Also I have the following information (from my android-phone): The compass-direction in degree, wich bears to the north. For example, when I direct my phone to north, I get 0° How can I create a "compass-like" arrow wich shows me the direction to the point? Is there a mathematic

iPhone Compass GPS Direction

走远了吗. 提交于 2019-11-26 11:19:39
问题 I\'m trying to develop an application that use the GPS and Compass of the iPhone in order to point some sort of pointer to a specific location (like the compass always point to the North). The location is fixed and I always need the pointer to point to that specific location no matter where the user is located. I have the Lat/Long coordinates of this location but not sure how can I point to that location using the Compass and the GPS... just like http://www.youtube.com/watch?v=iC0Xn8hY80w

how to calculate phone's movement in the vertical direction from rest?

为君一笑 提交于 2019-11-26 09:57:33
问题 I am developing an app using android OS for which I need to know how can I calculate the movement of the device up in the vertical direction. For example, the device is at rest (point A), the user picks it up in his hand (point B), now there is a height change between point A and point B, how would i calculate that? I have already gone through the articles about sensors and accelerometers, but I couldn\'t really find anything to help me with that. Anyone have any ideas? 回答1: If you integrate

Android getOrientation Azimuth gets polluted when phone is tilted

陌路散爱 提交于 2019-11-26 09:40:58
问题 I\'m having a really annoying problem with a AR view acting like a compass. So when I hold the phone in portrait (so that the screen is pointing to my face), then I call the remapCoordinateSystem that the pitch is 0 when holding it portrait. Then the azimuth (compass functionality) is perfect, but as soon as I tilt the phone the azimuth gets ruined, if I bend forward the azimuth increases and if I bend backwards it decreases. I use 2 sensors to get the readings, Sensor.TYPE_MAGNETIC_FIELD and

Android phone orientation overview including compass

半城伤御伤魂 提交于 2019-11-26 07:52:47
问题 I\'ve been trying to get my head around the Android orientation sensors for a while. I thought I understood it. Then I realised I didn\'t. Now I think (hope) I have a better feeling for it again but I am still not 100%. I will try and explain my patchy understanding of it and hopefully people will be able to correct me if I am wrong in parts or fill in any blanks. I imagine I am standing at 0 degrees longitude (prime meridian) and 0 degrees latitude (equator). This location is actually in the

Calculate compass bearing / heading to location in Android

主宰稳场 提交于 2019-11-26 01:48:39
问题 I want to display an arrow at my location on a google map view that displays my direction relative to a destination location (instead of north). a) I have calculated north using the sensor values from the magnetometer and accelerometer. I know this is correct because it lines up with the compass used on the Google Map view. b) I have calculated the initial bearing from my location to the destination location by using myLocation.bearingTo(destLocation); I\'m missing the last step; from these