|
RobotKit API
|
Class to encapsulate a calibrate command and it's parameters. More...
#import <RKCalibrateCommand.h>
Public Member Functions | |
| (id) | - initWithHeading: |
Static Public Member Functions | |
| (void) | + sendCommandWithHeading: |
Properties | |
| float | heading |
Class that encapsulates a calibrate command used to set the 0° heading. Client code can use this along with RKBackLEDOutputCommand and RKRollCommand to aim Sphero so sending a roll command with 0° moves it in a user desired direction.
| - (id) initWithHeading: | (float) | heading |
Initializer for a RKCalibrateCommand object.
| heading | Typically this should be 0.0, but setting it will add to the current heading when setting the new 0° point. The value is in degrees. |
| + (void) sendCommandWithHeading: | (float) | heading |
Convenience method for sending the command through RKDeviceMessenger.
| heading | Typically this should be 0.0, but setting it will add to the current heading when setting the new 0° point. The value is in degrees. |
- (float) heading [read, assign] |
The angle that will be added to the current heading when setting the new 0° point. The value is in degrees.
1.7.4