compass-geolocation

Phonegap with Compass and GPS coordinates

倖福魔咒の 提交于 2019-12-03 06:06:35
问题 I am working on a project that takes the compass script from Phonegap and i would like to connect it to my currect GPS position and than point to a fixed GPS position (like a restaurant etc.) Basicly the arrow must be pointing in the direction of the restaurant so i know which way to go/walk. These are the two i would like to combine: http://docs.phonegap.com/en/2.0.0/cordova_geolocation_geolocation.md.html#Geolocation http://docs.phonegap.com/en/2.0.0/cordova_compass_compass.md.html#Compass

Disable compass on MKMapView

自古美人都是妖i 提交于 2019-12-03 05:30:19
I am using a MapView in my app to show some annotations. In iOS 7 a compass appears randomly on the map. I can't reproduce the error because it appears randomly but I want to disable it. Any ideas how to disable it? Update: I found out is not appears randomly but on a specific gesture. When you use 2 fingers and slide one right and the other left. Mark Amery You can disable the compass easily on OSX 10.9 / iOS 9 and later with the showsCompass property: yourMapView.showsCompass = NO; On iOS 8 or earlier, your choices are: Suck it up and live with it. Use a hack, like: position the map to hide

How to improve accuracy of accelerometer and compass sensors?

梦想的初衷 提交于 2019-12-03 05:19:52
问题 i am creating an augmented reality app that simply visualices a textview when the phone is facing a Point of Interest (wich gps position is stored on the phone). The textview is painted on the point of interest location in the screen. It works ok, the problem is that compass and accelerometer are very "variant", and the textview is constantly moving up and down left and right because the innacuracy of the sensors. there is a way to solve it? 回答1: Our problem is same. I also had same problem

iPhone compass showing to a specific location

依然范特西╮ 提交于 2019-12-03 00:43:49
I am new to objective-c so I want to apologize if my question is too rubbish. I am programming a compass and yet, it is working (thanks to a tutorial). Actual position (Longitude and Lattitude) is given. Is it possible that my arrow within the compass can show me the direction to a specific location (longitude2 and lattitude2)? I have read that I have to consider the magnetic and the true heading of the iphone. Flori - (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading { double heading = newHeading.trueHeading; //in degree relative to true north double

iOS augmented reality with compass and location

泄露秘密 提交于 2019-12-02 19:48:00
I'm trying to develop a mini "Around Me" like using camera, compass and location. I would like to display place's images on my screen. For the moment I have my location and my orientation with compass. I would like to know how can I determine the position of the place I want to display. Thanks for your help ;) Once you have relative distance and bearing, which you can determine from two points in the same coordinate space using algorithms found on this page , figuring out where a known coordinate is with respect to a known viewpoint is basically a perspective projection, the math is outlined

How to improve accuracy of accelerometer and compass sensors?

微笑、不失礼 提交于 2019-12-02 18:37:06
i am creating an augmented reality app that simply visualices a textview when the phone is facing a Point of Interest (wich gps position is stored on the phone). The textview is painted on the point of interest location in the screen. It works ok, the problem is that compass and accelerometer are very "variant", and the textview is constantly moving up and down left and right because the innacuracy of the sensors. there is a way to solve it? Our problem is same. I also had same problem when I create simple augmented reality project. The solution is to use exponential smoothing or moving

accessing iPhone compass with JavaScript

别说谁变了你拦得住时间么 提交于 2019-12-01 04:05:56
Know if it's possible to access the iPhone compass in Safari using JavaScript? I see how the GPS can be accessed , but I can't figure out the compass. christo16 You cannot access that information via javascript, unless you're using something like iPhoneGap At the time this was true, in iOS 5 you can use the compass heading in JS. https://developer.apple.com/documentation/webkitjs/deviceorientationevent/1804777-webkitcompassheading On iOS , you can retrieve the compass value like this. window.addEventListener('deviceorientation', function(e) { console.log( e.webkitCompassHeading ); }, false);

Accelerometer & gyro accuracy in different mobile device

血红的双手。 提交于 2019-12-01 03:51:48
I want to implement an indoor localisation system using the sensors of a mobile device (accelerometer, compass, gyro) . This problem was already discussed here on several places such as - here and here The first step is to decide which platform is the best one to implement such a system. The main possibilities are Samsung's Galaxy/ Galaxy tab, or the iphone/ ipad. The most important criteria is the accuracy of the sensors data. However, This comparison is very complicated, as the accuracy is dependent not only on the device itself but also on the software layers above it. Is there any research

Accelerometer & gyro accuracy in different mobile device

末鹿安然 提交于 2019-12-01 00:47:14
问题 I want to implement an indoor localisation system using the sensors of a mobile device (accelerometer, compass, gyro) . This problem was already discussed here on several places such as - here and here The first step is to decide which platform is the best one to implement such a system. The main possibilities are Samsung's Galaxy/ Galaxy tab, or the iphone/ ipad. The most important criteria is the accuracy of the sensors data. However, This comparison is very complicated, as the accuracy is

Android: Problems calculating the Orientation of the Device

微笑、不失礼 提交于 2019-11-30 13:21:21
问题 i'am trying to build a simple Augmented Reality App, so I start working with sensor Data. According to this thread (Android compass example) and example (http://www.codingforandroid.com/2011/01/using-orientation-sensors-simple.html), the calculation of the orientation using the Sensor.TYPE_ACCELEROMETER and Sensor.TYPE_MAGNETIC_FIELD doesn't really fit. So I'm not able to get "good" values. The azimut values doesn't make any sense at all, so if I just move the Phone upside the value changes