Questions tagged [digital-compass]

32 questions
8
votes
2 answers

Sloot Digital Coding System

" In the late 1990s, a Dutch electronics technician named Romke Jan Berhnard Sloot announced the development of the Sloot Digital Coding System, a revolutionary advance in data transmission that, he claimed, could reduce a feature-length movie down…
Vikas Yadav
  • 81
  • 1
  • 1
  • 3
8
votes
1 answer

TYPE_ROTATION_VECTOR, TYPE_ORIENTATION give different results that too with deviation

I have implemented listener for both Rotation Vector and Orientation Vector though i know it's depreciated i wanted to test both. I know Rotation Vector is a fusion sensor & recommended but according to it the NORTH (the value[0] returned by…
7
votes
1 answer

Difference between orientation sensor and magnetic field sensor on Android?

Does anyone know the difference between the orientation sensor and magnetic field sensor on Android? My understanding: orientation => digital compass magnetic field => magnetometer Since I've read that magnetometer is synonymous with digital…
devpg
  • 300
  • 1
  • 3
  • 10
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
  • 945
  • 1
  • 9
  • 29
4
votes
1 answer

iOS 7 detect if true north heading is available

I have an app that I've recently converted to using Apple's new compass fusion API. It used to use older (now deprecated) APIs. This is how I enable motion updates. If location services are not available I have to ask for magnetic north since…
btschumy
  • 1,435
  • 1
  • 18
  • 35
4
votes
1 answer

Android compass: GPS-based

I would like to create an Android compass - based only on GPS. The device I am developing it for does not have any accelorometer or magnetic field sensor, that's why I have to rely on the android.location classes only. So far, accessing the…
4
votes
3 answers

How do I get the correct bearing (magnetic orientation) regardless of screen orientation?

I want to get the current magnetic orientation regardless of the current screen orientation (landscape or portrait). I found this example, but it's not orientation independant, right? And this didn't help me either. I did also read…
felixd
  • 383
  • 2
  • 7
  • 20
4
votes
1 answer

How to make a customized compass view in android

I am working with a simple compass application. I need to set the compass view with the sensor activity for that i choose a compass view class. But it is only drawing a circle and a line for the compass view. I need to customize this view by…
Hybrid Developer
  • 2,320
  • 1
  • 34
  • 55
2
votes
1 answer

North calculation based on magnetometer and gyroscope

I need to calculate "facing" (it doesn't matter if it will be based on true north or magnetic one). As it can be seen on the iOS devices the CLHeading objects returned by the CLLocationManager gives us both the true and the magnetic heading by…
Ariel
  • 2,430
  • 1
  • 17
  • 20
2
votes
2 answers

Tilted magnetometer output -pitch and roll tilt compensation - i am lost

I have wasted 2 days (and nights) on this specific issue and completely failed in tilt compensating my magnetometer output. I tried about everything I could read on Google and in open source examples, nothing guided me to a proper tilt compensation…
John
  • 7,507
  • 3
  • 52
  • 52
2
votes
2 answers

C++ Arduino Project with Ublox NEO6MV2 GPS and HMC5883L Compass

I want to use GPS module and compass sensor together and log the info with SD Card. I finished the hardware part but my code doesn't work as it must be. I can log GPS data on SD card but I cannot log GPS data with Compass' heading data in this…
user35128
  • 21
  • 2
2
votes
2 answers

Does Android Rotation Vector Sensor use the magnetometer readings?

As known, the so-called "Rotation Vector Sensor" is a virtual sensor. I know for sure that it takes the readings from accelerometer and gyroscope for computation. However, now I wish to know whether the magnetometer readings are also take into the…
Sibbs Gambling
  • 19,274
  • 42
  • 103
  • 174
1
vote
2 answers

Compass not working on some devices

We recently released an Android port of an iPhone app. The app relies on the digital compass for some features. This has been working well on most devices, but there are a few where the compass is not working. For the description it seems the…
btschumy
  • 1,435
  • 1
  • 18
  • 35
1
vote
1 answer

Android AR Compass Display

I am working on an Augmented Reality (AR) app for an Android phone. I would like to display my orientation data in the form of two rotating axes: one at the top of the screen to show the current azimuth (North, East, South, West), and one on the…
user798377
1
vote
0 answers

phonegap iphone digitalcompass update accuracy

I am in the process of developing an augmented reality iphone app in javascript using the phonegap library and it's turning out quite well. I put a low pass filter to calm down the accelerometer readings used on tilt of the device which works very…
Landon
  • 4,088
  • 3
  • 28
  • 42
1
2 3