Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Compass.headingAccuracy

var headingAccuracy: float;
float headingAccuracy;
headingAccuracy as float

Description

Accuracy of heading reading in degrees.

Negative value mean unreliable reading. If accuracy is not supported or not available, 0 is returned. Not all platforms support this pricise accuracy, so the value may vary between few constant values.