RobotKit API
|
00001 // 00002 // RKAccelerometerData.h 00003 // RobotKit 00004 // 00005 // Created by Brian Smith on 7/12/11. 00006 // Copyright 2011 Orbotix Inc. All rights reserved. 00007 // 00008 00011 #import <Foundation/Foundation.h> 00012 #import <RobotKit/RKSensorData.h> 00013 00020 struct RKAcceleration { 00021 float x; 00022 float y; 00023 float z; 00024 }; 00025 00027 typedef struct RKAcceleration RKAcceleration; 00028 00038 @interface RKAccelerometerData : RKSensorData { 00039 @private 00040 RKAcceleration acceleration; 00041 RK3AxisSensor accelerationRaw; 00042 RK3AxisSensorState state; 00043 } 00044 00046 @property (nonatomic, readonly) RKAcceleration acceleration; 00050 @property (nonatomic, readonly) RK3AxisSensor accelerationRaw; 00052 @property (nonatomic, readonly) RK3AxisSensorState state; 00053 00054 @end