RobotKit API
|
Class to encapsulate a raw motor values command. More...
#import <RKRawMotorValuesCommand.h>
Public Member Functions | |
(id) | - initWithLeftMode:leftPower:rightMode:rightPower: |
Static Public Member Functions | |
(void) | + sendCommandWithLeftMode:leftPower:rightMode:rightPower: |
Properties | |
RKRawMotorMode | leftMotorMode |
RKRawMotorPower | leftMotorPower |
RKRawMotorMode | rightMotorMode |
RKRawMotorPower | rightMotorPower |
This command is used to set raw motor values to move the ball without the control system maintaining a heading and speed. The control system stabilization engine will be turned off when this command is run, and clients need to use RKStabilizationCommand to turn it back on.
- (id) initWithLeftMode: | (RKRawMotorMode) | leftMode | |
leftPower: | (RKRawMotorPower) | leftPower | |
rightMode: | (RKRawMotorMode) | rightMode | |
rightPower: | (RKRawMotorPower) | rightPower | |
Initializes the object with the raw motor values.
leftMode | The left motor mode. |
leftPower | A value from 0 to 255 for the power to applied to the motor. |
rightMode | The right motor mode. |
rightPower | A value from 0 to 255 for the power to applied to the motor. |
+ (void) sendCommandWithLeftMode: | (RKRawMotorMode) | leftMode | |
leftPower: | (RKRawMotorPower) | leftPower | |
rightMode: | (RKRawMotorMode) | rightMode | |
rightPower: | (RKRawMotorPower) | rightPower | |
Convenience method to send a raw motor values command.
leftMode | The left motor mode. |
leftPower | A value from 0 to 255 for the power to applied to the motor. |
rightMode | The right motor mode. |
rightPower | A value from 0 to 255 for the power to applied to the motor. |
- (RKRawMotorMode) leftMotorMode [read, assign] |
Read only property for left motor mode.
- (RKRawMotorPower) leftMotorPower [read, assign] |
Read only property for the left motor power. This is a value from 0 to 255.
- (RKRawMotorMode) rightMotorMode [read, assign] |
Read only property for right motor mode.
- (RKRawMotorPower) rightMotorPower [read, assign] |
Read only property for the right motor power. This is a value from 0 to 255.