source: orbit/iOS/Orbit/CoreMotion.framework/Headers/CMGyro.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.6 KB
Line 
1/*
2 *  CMGyro.h
3 *  CoreMotion
4 *
5 *  Copyright (c) 2010 Apple Inc. All rights reserved.
6 *
7 */
8
9#import <Foundation/Foundation.h>
10#import <CoreMotion/CMLogItem.h>
11
12/*
13 *  CMRotationRate
14 * 
15 *  Discussion:
16 *    A structure containing 3-axis rotation rate data.
17 *
18 *  Fields:
19 *    x:
20 *      X-axis rotation rate in radians/second. The sign follows the right hand
21 *      rule (i.e. if the right hand is wrapped around the X axis such that the
22 *      tip of the thumb points toward positive X, a positive rotation is one
23 *      toward the tips of the other 4 fingers).
24 *    y:
25 *      Y-axis rotation rate in radians/second. The sign follows the right hand
26 *      rule (i.e. if the right hand is wrapped around the Y axis such that the
27 *      tip of the thumb points toward positive Y, a positive rotation is one
28 *      toward the tips of the other 4 fingers).
29 *              z:
30 *                      Z-axis rotation rate in radians/second. The sign follows the right hand
31 *      rule (i.e. if the right hand is wrapped around the Z axis such that the
32 *      tip of the thumb points toward positive Z, a positive rotation is one
33 *      toward the tips of the other 4 fingers).
34 */
35typedef struct {
36        double x;
37        double y;
38        double z;       
39} CMRotationRate;
40
41/*
42 *  CMAccelerometerData
43 * 
44 *  Discussion:
45 *    Contains a single accelerometer measurement.
46 *
47 */
48NS_CLASS_AVAILABLE(NA,4_0)
49@interface CMGyroData : CMLogItem
50{
51@private
52        id _internal;
53}
54
55/*
56 *  rotationRate
57 * 
58 *  Discussion:
59 *    The rotation rate as measured by the gyro.
60 *
61 */
62@property(readonly, nonatomic) CMRotationRate rotationRate;
63
64@end
Note: See TracBrowser for help on using the repository browser.