Questions tagged [digital-compass]

32 questions
0
votes
1 answer

Compass freaks out when the phone is upside down

I've been testing sensor data on Android and I noticed weird behavior when phones screen is pointing toward gravity (upside-down). When I obtained data from TYPE_ORIENTATION sensor azimuth is having wrong values and minor shifts causes major…
pzo
  • 2,087
  • 3
  • 24
  • 42
-1
votes
1 answer

Drawing east and west line in the circle?

I am currently building a small compass app and I have drawn the north and south line using simple circle equation: x= a+r Cos(t) and y= b+ r Sin(t) where t=heading or direction in degree(angle). More info in Wiki So far I have manged to get the…
COLD ICE
  • 840
  • 1
  • 12
  • 31
1 2
3