Questions tagged [compass-geolocation]

Geolocation is the identification of the real-world geographic location of an object, such as a cell phone or an Internet-connected computer terminal. Geolocation may refer to the practice of assessing the location, or to the actual assessed location.

328 questions
8
votes
3 answers

Calculating magnetic heading using raw accelerometer and magnetometer data

I have an accelerometer and magnetometer each producing raw X, Y and Z readouts. From this I need to determine the magnetic heading of an object. I'm not that great at trig, but I've put together a formula that does respond pretty well to the…
M. Ryan
  • 6,674
  • 9
  • 48
  • 74
8
votes
2 answers

Accelerometer & gyro accuracy in different mobile device

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…
Ariel
  • 206
  • 4
  • 10
7
votes
4 answers

How to improve accuracy of accelerometer and compass sensors?

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,…
7
votes
3 answers

Universal Logic for finding qibla direction

I am very keen on knowing an universal qibla direction logic as I want to implement in my islamic android app. I have just obtained latitude and longitude of the user and irrespective of any lat, lon I want to find qibla direction for that person…
7
votes
4 answers

accessing iPhone compass with JavaScript

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.
Drew Dara-Abrams
  • 7,681
  • 11
  • 38
  • 47
7
votes
1 answer

Qibla compass in Android

I have try much but can not make Qibla compass for my application. I can't understand what I do. I need Qibla compass that works perfectly.
Parag Chauhan
  • 33,908
  • 13
  • 83
  • 95
6
votes
2 answers

Compass direction is different depending on phone orientation

My augmented reality app needs the compass bearing of the camera view, and there's plenty of examples of getting the direction from the sensormanager. However I'm finding the resulting value different depending on the phone orientation - landscape…
6
votes
4 answers

iOS augmented reality with compass and location

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…
Pierre
  • 6,557
  • 5
  • 48
  • 78
6
votes
3 answers

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

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…
Raza Gill
  • 1,132
  • 4
  • 12
  • 23
6
votes
4 answers

Compass: from 359 to 0 degrees

I am trying to move a robot using a compass. We use the compass to make the robot move in straight line, it uses 2 wheels and they move a bit different. So we set a value between 0 and 359 as direction, and then check the current direction,…
Dr Sokoban
  • 1,510
  • 3
  • 17
  • 30
6
votes
1 answer

How to get compass direction

I want to show the direction on the screen that phone is facing. For example: 0 |- [] |_ South --- North In the above diagram the phone would display "North". Since the user (the stick with 0 for his head) is holding out the phone (the…
Greg
  • 39,830
  • 86
  • 217
  • 286
6
votes
2 answers

Compass accuracy dilemma

I need to build compass for my application. From reading the documentation it seems there are two reasonable ways of doing this: Sensor.TYPE_ORIENTATION method: This is the easy way of doing it. The problem with this is it is not accurate. When I…
mob1lejunkie
  • 925
  • 1
  • 9
  • 28
6
votes
3 answers

iphone compass tilt compensation

has anybody already programmed a iphone compass heading tilt compensation? i have got some approaches, but some help or a better solution would be cool! FIRST i define a vector Ev, calculated out of the cross product of Gv and Hv. Gv is a gravity…
user302606
  • 118
  • 1
  • 6
5
votes
2 answers

Between GPS, compass heading and accelerometer, which consumes the most amount of battery?

Does anyone know between GPS, compass heading and accelerometer which uses the most amount of battery (or how they compare relatively?) I'm assuming somewhat naively it's: accelerometer < compass heading < GPS but I can't find anything to…
Rio
  • 11,734
  • 21
  • 62
  • 104
5
votes
1 answer

iOS5: low update rate of CLHeading readings -> switching to CoreMotion is problematic

With iOS5 the update frequencey of the Compass raw data reading, CLHeading, dropped dramatically. This rendered my augmented reality app unusable, because it depends on a close-to-real-time reading of the raw compass data. Therefore I'm now trying…
1 2
3
21 22