Event.HEADING UPDATE: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
<languages />
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
'''Value:''' headingUpdate<br/>
'''<translate>Value</translate>:''' headingUpdate<br/>
'''Defined by:''' [[Geolocation]]<br/>
'''<translate>Defined by</translate>:''' [[Special:MyLanguage/Geolocation|Geolocation]]<br/>
 
=== <translate>Descriptio</translate>n ===
=== Description ===
<translate>This event is dispatched on each user heading direction update</translate>
This event is dispatched on each user heading direction update.
=== <translate>Parameters</translate> ===
 
'''magneticHeading''': (number) <translate>The value in this property represents the heading relative to the magnetic North Pole, which is different from the geographic North Pole. The value 0 means the device is pointed toward magnetic north, 90 means it is pointed east, 180 means it is pointed south, and so on.</translate><br/>
=== Parameters ===
'''trueHeading''': (number) <translate>The value in this property represents the heading relative to the geographic North Pole. The value 0 means the device is pointed toward true north, 90 means it is pointed due east, 180 means it is pointed due south, and so on. A negative value indicates that the heading could not be determined.</translate><br/>
'''magneticHeading''': (number) the value in this property represents the heading relative to the magnetic North Pole, which is different from the geographic North Pole. The value 0 means the device is pointed toward magnetic north, 90 means it is pointed east, 180 means it is pointed south, and so on<br/>
'''trueHeading''': (number) the value in this property represents the heading relative to the geographic North Pole. The value 0 means the device is pointed toward true north, 90 means it is pointed due east, 180 means it is pointed due south, and so on. A negative value indicates that the heading could not be determined<br/>
'''magneticX''': (number) magnetic field in the X direction, in µT<br/>
'''magneticY''': (number) magnetic field in the Y direction, in µT<br/>
'''magneticZ''': (number) magnetic field in the Z direction, in µT<br/>
 
{{Geolocation}}

Latest revision as of 05:46, 10 October 2023

Available since: Gideros 2011.6
Value: headingUpdate
Defined by: Geolocation

Description

This event is dispatched on each user heading direction update.

Parameters

magneticHeading: (number) the value in this property represents the heading relative to the magnetic North Pole, which is different from the geographic North Pole. The value 0 means the device is pointed toward magnetic north, 90 means it is pointed east, 180 means it is pointed south, and so on
trueHeading: (number) the value in this property represents the heading relative to the geographic North Pole. The value 0 means the device is pointed toward true north, 90 means it is pointed due east, 180 means it is pointed due south, and so on. A negative value indicates that the heading could not be determined
magneticX: (number) magnetic field in the X direction, in µT
magneticY: (number) magnetic field in the Y direction, in µT
magneticZ: (number) magnetic field in the Z direction, in µT