source: orbit/iOS/Orbit/CoreMotion.framework/Headers/CMMagnetometer.h @ 876e42b

Servo
Last change on this file since 876e42b was 876e42b, checked in by Steve Castellotti <sc@…>, 7 years ago
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  CMMagnetometer.h
3 *  CoreMotion
4 *
5 *  Copyright (c) 2011 Apple Inc. All rights reserved.
6 *
7 */
8
9#import <Foundation/Foundation.h>
10#import <CoreMotion/CMLogItem.h>
11
12/*
13 *  CMMagneticField
14 * 
15 *  Discussion:
16 *    A structure containing 3-axis magnetometer data.
17 *
18 *  Fields:
19 *    x:
20 *      X-axis magnetic field in microteslas.
21 *    y:
22 *      Y-axis magnetic field in microteslas.
23 *    z:
24 *      Z-axis magnetic field in microteslas.
25 */
26typedef struct {
27    double x;
28    double y;
29    double z;
30} CMMagneticField;
31
32/*
33 *  CMMagnetometerData
34 * 
35 *  Discussion:
36 *    Contains a single magnetometer measurement.
37 */
38NS_CLASS_AVAILABLE(NA,5_0)
39@interface CMMagnetometerData : CMLogItem
40{
41@private
42    id _internal;
43}
44
45/*
46 *  magneticField
47 * 
48 *  Discussion:
49 *    Returns the magnetic field measured by the magnetometer. Note
50 *        that this is the total magnetic field observed by the device which
51 *        is equal to the Earth's geomagnetic field plus bias introduced
52 *        from the device itself and its surroundings.
53 */
54@property(readonly, nonatomic) CMMagneticField magneticField;
55
56@end
Note: See TracBrowser for help on using the repository browser.