RobotKit API
|
Class that encapsulates a set rotation rate command. More...
#import <RKRotationRateCommand.h>
Public Member Functions | |
(id) | - initWithRate: |
Static Public Member Functions | |
(void) | + sendCommandWithRate: |
Properties | |
float | rate |
This class is used to change the rotation rate of Sphero. The rotation rate effects how sharp Sphero can turn. A low rotation rate means Sphero will make a larger radius of curvature in a turn, and a higher value will make a smaller radius of curvature, but will be more unstable.
- (id) initWithRate: | (float) | rate |
Initializer for the object.
rate | A value between 0.0 to 1.0 to adjust the rotation rate for the adjustable range. |
+ (void) sendCommandWithRate: | (float) | rate |
A convenience method for sending the command.
rate | A value between 0.0 to 1.0 to adjust the rotation rate for the adjustable range. |
- (float) rate [read, assign] |
The rotation rate set for the command.