Compass (static class). More...
#import <mo_compass.h>
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] | |
Compass (static class).
Sample Code:
MoCompass::addCallback( compassCallback, NULL );
| + (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]
1.7.1