Cardboard Robot SDK
 All Classes Functions Properties
Properties | Public Member Functions | Static Public Member Functions | List of all members
CBArmSpeed Class Reference

Detailed Description

Represents the speed of the robot arm.

#import <CBArmSpeed.h>

Properties

double m1Speed
 Gets the speed of motor #1, in radians per second.
double m2Speed
 Gets the speed of motor #2, in radians per second.
double m3Speed
 Gets the speed of motor #3, in radians per second.
double m4Speed
 Gets the speed of motor #4, in radians per second.

Public Member Functions

(id) - initWithM1Speed:andM2Speed:andM3Speed:andM4Speed:
 Returns a CBArmSpeed object initialized with the specified speed for each motor (in radians per second).
(NSString *) - description
 Returns a string description of this CBArmSpeed object.
(double) - componentWithIndex:
 Returns the value of the component with the given index (0, 1, 2, or 3)
(CBArmSpeed *) - setComponentWithIndex:toValue:
 Returns a CBArmSpeed with the specified component (0, 1, 2, 3) set to the given value.

Static Public Member Functions

(CBArmSpeed *) + armSpeedWithM1Speed:andM2Speed:andM3Speed:andM4Speed:
 Returns a CBArmSpeed object with the specified speed for each motor (in radians per second).
(CBArmSpeed *) + zero
 Returns a CBArmSpeed object that represents a speed of zero.

The documentation for this class was generated from the following files: