RobotKit API
|
00001 // 00002 // RKSensorData.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 00020 struct RK3AxisSensor { 00021 int16_t x; 00022 int16_t y; 00023 int16_t z; 00024 }; 00025 00029 typedef struct RK3AxisSensor RK3AxisSensor; 00030 00039 struct RK3AxisSensorState { 00040 BOOL xValid; 00041 BOOL yValid; 00042 BOOL zValid; 00043 BOOL xRawValid; 00044 BOOL yRawValid; 00045 BOOL zRawValid; 00046 }; 00047 00051 typedef struct RK3AxisSensorState RK3AxisSensorState; 00052 00059 @interface RKSensorData : NSObject { 00060 NSTimeInterval timeStamp; 00061 } 00062 00064 @property (nonatomic, readonly) NSTimeInterval timeStamp; 00065 00066 @end