Questions tagged [digital-compass]

32 questions
1
vote
0 answers

Temporarily swap the device sensors axes

I'd like to create an app that can temporarily swap the XYZ device sensors axes such as the gyroscope, compass, accelerometer, etc. (i.e. make the device believe that X axis is Z, north is south, right is left, up is down, etc...). As long as this…
1
vote
1 answer

Is this a Digital Compass or Unity limitation?

I'm interested in AR applications of mobile devices and naturally I would like to make better use of the compass. The only issue I've been having to work against isn't how twitchy the compass is. (Angular Smoothing seems to solve this issue just…
BlamKiwi
  • 2,093
  • 2
  • 19
  • 30
1
vote
1 answer

Making a Compass point to a particular location in Unity

I'm trying to make a compass that points to a custom location in a Unity program. However it's completely off, it points in generally the wrong direction and I can't quite seem to figure out what is wrong with my logic. I'm using the curved…
BlamKiwi
  • 2,093
  • 2
  • 19
  • 30
1
vote
1 answer

Compass is not working in android

I have following this tutorial for android compass. Android Compass Code Example.But when i run this on my Micromax Funbook tablet and also run on Sony experia tipo phone but nothing happen on compass only it's display compass image. So what is the…
Jigar Shekh
  • 2,800
  • 6
  • 29
  • 54
1
vote
1 answer

iPhone Compass: Adjust Heading to get Correct Reading in Landscape

Does anyone know how to adjust the iPhone's compass reading to adjust if you use it in landscape mode? The heading is always taken from the top of the device, but a true reading should be available if recalculations are made with the accelerometer…
ACBurk
  • 4,418
  • 4
  • 34
  • 50
1
vote
2 answers

Compass readings on SGS III

My app needs to show the current bearing of the device using its compass. The code I'm using (below) works perfectly fine on my Galaxy Nexus and Galaxy One, but the compass is spinning around wildly on a Samsung Galaxy S III. I've tried doing a…
Nick
  • 3,504
  • 2
  • 39
  • 78
0
votes
1 answer

Pointing a Picture to the Compass Line

I am using the Raw Sensor Data Sample http://msdn.microsoft.com/en-us/library/ff431744%28v=vs.92%29.aspx#BKMK_Sensors for my Projekt. I implemented it into my Projekt and now I need to add a picture in the shape of a circle to the Magnetic heading…
MrTouch
  • 654
  • 2
  • 12
  • 28
0
votes
1 answer

xcode 4 Iphone- How to add a compass

How do I make a compass show up in my app? There is no compass in the object library that I can just add to my view. So I figured that a compass must be added via code. I have been looking at multiple tutorials, but none of them seem to actually…
A.sharif
  • 1,977
  • 1
  • 16
  • 27
0
votes
2 answers

Does your Android Compass hardware work while driving or beeing in a train?

I have a Desire Z and when moving to fast the compass hardware starts to return totally wrong values. Its probably the hardware which can't measure correctly when moving to fast but i want to know if all devices have this problem. You can try it…
Simon
  • 13,173
  • 14
  • 66
  • 90
0
votes
1 answer

Setting i2c slave address for Devantech digital compass

I am trying to interface with a Devantech digital compass found here - http://www.acroname.com/robotics/parts/R117-COMPASS.html I am using a i2c-usb converter to plug it into my laptop -…
Sterling
  • 3,835
  • 14
  • 48
  • 73
0
votes
1 answer

how to return to try script when exception ends

recently am trying to write GUI script which will catch data from QMC5883l digital compass and show the data in the small gui in realtime , the script works fine with no error ,except when the compass disconnected ,an OSError well raise and the…
0
votes
1 answer

Point compass to a particular co ordinate

I am creating an android compass application. However, I want to add a functionality where the compass will point to some co ordinate that I have specified. How can I achieve this. Thanks and Regards, Rohit Savant
user3921255
  • 41
  • 1
  • 2
  • 5
0
votes
1 answer

How to calculate the value of the smoothing parameter for lowpass filter (in case of smoothing of compass sensor data)

I want to smooth the compass sensor data of a smartphone using the low pass filter and want to calculate the smoothing parameter for the low pass filter implementation. I have a question concerning one of the question/post available on this forum In…
0
votes
0 answers

GPS Heading - Compass Heading

I have a dial with an arrow on it - I want this arrow to point to a GPS coordinate and adjusting for compass heading at the same time. I'm getting the compass to rotate just fine, and I can also point the arrow in the correct GPS-heading, but I'm…
PinkFloydRocks
  • 808
  • 3
  • 14
  • 29
0
votes
0 answers

is it possible that android proguard cause missfunction of app?

i am writing an app that one part of it is a compass, it show right direction before, i adding 2 or 3 activity to app that is unrelated to compass activity, also used android proguard(with default setting not the optimized one), as result the…
mehdok
  • 1,499
  • 4
  • 29
  • 54