Pebble Foundation Classes  0.2.0
C++ for Pebble
CompassHeadingData Struct Reference

Structure containing a single heading towards magnetic and true north. More...

#include <pebble.h>

Public Attributes

CompassHeading magnetic_heading
 
CompassHeading true_heading
 Currently same value as magnetic_heading (reserved for future implementation).
 
CompassStatus compass_status
 Indicates the current state of the Compass Service calibration.
 
bool is_declination_valid
 Currently always false (reserved for future implementation).
 

Detailed Description

Structure containing a single heading towards magnetic and true north.

Member Data Documentation

◆ magnetic_heading

CompassHeading CompassHeadingData::magnetic_heading

Measured angle that increases counter-clockwise from magnetic north (use int clockwise_heading = TRIG_MAX_ANGLE - heading_data.magnetic_heading; for example to find your heading clockwise from magnetic north).


The documentation for this struct was generated from the following files: