ClassLuaHeading - HydraFramework/Hydra GitHub Wiki
Attributes(r readonly,w writeonly,rw readwrite)
| name | RW | description |
| timestamp:float | r | Returns a timestamp for when the magnetic heading was determined. |
| magneticHeading:float | r | Represents the direction in degrees, where 0 degrees is magnetic North. The direction is referenced from the top of the device regardless of device orientation as well as the orientation of the user interface. |
| trueHeading:float | r | Represents the direction in degrees, where 0 degrees is true North. The direction is referenced from the top of the device regardless of device orientation as well as the orientation of the user interface. |
| headingAccuracy:float | r | Represents the maximum deviation of where the magnetic heading may differ from the actual geomagnetic heading in degrees. A negative value indicates an invalid heading. |
| x:float | r | Returns a raw value for the geomagnetism measured in the x-axis. |
| y:float | r | Returns a raw value for the geomagnetism measured in the y-axis. |
| z:float | r | Returns a raw value for the geomagnetism measured in the z-axis. |