RobotKit API
Public Member Functions | Properties
RKJoyStickDriveAlgorithm Class Reference

A classs for a joy stick style drive control. More...

#import <RKJoyStickDriveAlgorithm.h>

Inheritance diagram for RKJoyStickDriveAlgorithm:
RKDriveAlgorithm

List of all members.

Public Member Functions

(id) - initWithPadSize:
(void) - updatePadSize:

Properties

CGPoint center

Detailed Description

This algorithm takes and size that represents an area the a joy stick control is dragged in, and converts x and y coordinates in this area into drive coordinates.


Member Function Documentation

- (id) initWithPadSize: (CGSize)  size

Initializes the algorithm with the size of the drag area used for the joy stick.

Parameters:
sizeThe bounds of area used for the joy stick control.
Returns:
The initialized object.
- (void) updatePadSize: (CGSize)  size

Updates the size of the screen area used for the joystick.

Parameters:
sizeThe bounds of the area used for the joystick.

Property Documentation

- (CGPoint) center [read, assign]

Center point of the joy pad area


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties