RobotKit API
RobotKit/RKBackEMFData.h
Go to the documentation of this file.
00001 //
00002 //  RKBackEMFData.h
00003 //  RobotKit
00004 //
00005 //  Created by Brian Smith on 7/12/11.
00006 //  Copyright 2011 Orbotix Inc. All rights reserved.
00007 //
00008 
00010 #import <Foundation/Foundation.h>
00011 #import <RobotKit/RKSensorData.h>
00012 
00018 struct RKBackEMF {
00019     int16_t rightMotor; 
00020     int16_t leftMotor;  
00021 };
00022 
00024 typedef struct RKBackEMF RKBackEMF;
00025 
00030 struct RKBackEMFState {
00031     BOOL rightMotorValid; 
00032     BOOL leftMotorValid; 
00033     BOOL rightMotorRawValid; 
00034     BOOL leftMotorRawValid; 
00035 };
00036 
00038 typedef struct RKBackEMFState RKBackEMFState;
00039 
00049 @interface RKBackEMFData : RKSensorData {
00050     @private
00051     RKBackEMF       backEMF;
00052     RKBackEMF       backEMFRaw;
00053     RKBackEMFState  state;
00054 }
00055 
00057 @property (nonatomic, readonly) RKBackEMF backEMF;
00059 @property (nonatomic, readonly) RKBackEMF backEMFRaw;
00061 @property (nonatomic, readonly) RKBackEMFState state;
00062 
00063 @end
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties