Static Public Member Functions

MoCompass Class Reference

Compass (static class). More...

#import <mo_compass.h>

List of all members.

Static Public Member Functions

(static void) + setOffset
 store the current compass value to use later for direction normalization
(static void) + clearOffset
 clear the current compass offset
(static double) + getMagneticOffset
 get the stored magnetic offset
(static double) + getTrueOffset
 get the sored true offset
(static double) + getMagneticHeading
 get the magnetic heading of the compass
(static double) + getTrueHeading
 get the magnetic heading of the compass
(static double) + getAccuracy
 get the estimated accuracy of the compass
(static NSDate *) + getTimestamp
 get the timestamp
(static void) + addCallback
 register a callback to be invoked on subsequent updates
(static void) + removeCallback
 unregister a callback
(static void) + update
 [Internal/Do Not Use]

Detailed Description

Compass (static class).

Sample Code:

MoCompass::addCallback( compassCallback, NULL );


Member Function Documentation

+ (void) addCallback (const MoCompassCallback &)  callback
(void *)  data 

register a callback to be invoked on subsequent updates

+ (void) clearOffset  

clear the current compass offset

+ (double) getAccuracy  

get the estimated accuracy of the compass

+ (double) getMagneticHeading  

get the magnetic heading of the compass

+ (double) getMagneticOffset  

get the stored magnetic offset

+ (NSDate *) getTimestamp  

get the timestamp

+ (double) getTrueHeading  

get the magnetic heading of the compass

+ (double) getTrueOffset  

get the sored true offset

+ (void) removeCallback (const MoCompassCallback &)  callback  

unregister a callback

+ (void) setOffset  

store the current compass value to use later for direction normalization

+ (void) update (CLHeading *)  heading  

[Internal/Do Not Use]


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines