RobotKit API
|
Implementation of tilt bassed drive control from accelerometer data. More...
#import <RKTiltDriveAlgorithm.h>
Public Member Functions | |
(id) | - initWithOrientation: |
Properties | |
double | maximumTilt |
double | orientationAngle |
Drive Algorithm for using the tilt of the device to control direction and speed using accelerometer data. The stopOffset property is read as radians from the device setting flat.
- (id) initWithOrientation: | (UIInterfaceOrientation) | orientation |
Initializer for the class, which takes the iOS device orientation into account.
orientation | The iOS device orientation. |
- (double) maximumTilt [read, assign] |
Maximum tilt angle in radians used to clamp angle values to
- (double) orientationAngle [read, write, assign] |
An angle that represents the yaw orientation of the iOS device. This angle can be used as an offset for the heading.