javascript - How do I get compass heading from DeviceOrientation in the Google Glass Browser? -
the web browser built google glass of firmware version xe7 provides deviceoreientation
events, values don't seem come expected frame of reference. how can 1 proper compass headings out of this? glass positioned on head:
deviceorientationevent
beta
90 upright , level -90 inverted , level 0 looking straight or down
gamma
90 right ear towards floor 180 looking straight 270/-90 left ear down 0 looking straight down
alpha
this property not stable when glass horizontal (what should useful orientation using compass direction, determine wearer looking). gives stable readings when glass tilted above or below horizon.
above horizontal
90 north 0 east 180 west 270 south
below horizontal
270 north 180 east 0 west 90 south
may can idea on how control compass newly launched sample
Comments
Post a Comment