RobotKit API
|
00001 // 00002 // RKRollCommand.h 00003 // RobotKit 00004 // 00005 // Created by Brian Smith on 6/15/11. 00006 // Copyright 2011 Orbotix Inc. All rights reserved. 00007 // 00008 00011 #import <Foundation/Foundation.h> 00012 #import <RobotKit/RKDeviceCommand.h> 00013 00021 @interface RKRollCommand : RKDeviceCommand { 00022 @private 00023 float heading; 00024 float velocity; 00025 BOOL stop; 00026 } 00027 00029 @property (nonatomic, readonly) float heading; 00031 @property (nonatomic, readonly) float velocity; 00033 @property (nonatomic, assign) BOOL stop; 00034 00041 + (void)sendCommandWithHeading:(float)heading velocity:(float)velocity; 00047 + (void)sendCommandWithHeading:(float)heading velocity:(float)velocity stopped:(BOOL)state; 00049 + (void)sendStop; 00051 + (void)resendCurrent; 00052 00056 + (void)setStickyVelocity:(float)velocity; 00060 + (void)unsetStickyVelocity; 00064 + (BOOL)isVelocityStuck; 00068 + (float)currentHeading; 00072 + (float)currentVelocity; 00076 + (BOOL)isCurrentlyStopped; 00077 00086 - (id)initWithHeading:(float)heading velocity:(float)velocity; 00087 00088 @end