Cardboard Robot SDK
 All Classes Namespaces Functions Enumerations Properties Events
Properties | Public Member Functions | List of all members
CBRobot.ArmSpeed Class Reference

Detailed Description

Represents the speed of the robot arm.

Properties

double M1Speed [get]
 Gets the speed of motor #1, in radians per second.
 
double M2Speed [get]
 Gets the speed of motor #2, in radians per second.
 
double M3Speed [get]
 Gets the speed of motor #3, in radians per second.
 
double M4Speed [get]
 Gets the speed of motor #4, in radians per second.
 
static ArmSpeed Zero [get]
 Returns an arm speed with all components set to zero.
 

Public Member Functions

 ArmSpeed (double m1Speed, double m2Speed, double m3Speed, double m4Speed)
 Creates a new ArmSpeed using the specified speed for each motor (in radians per second).
 
override string ToString ()
 Returns a string description of this ArmSpeed object.
 
ArmSpeed SetComponent (int componentIndex, double value)
 Returns a new arm speed with the specified component (0 - 3) set to the given value (in radians per second).
 
double GetComponent (int componentIndex)
 Returns the value (in radians per second) of the speed component with the given index (0 - 3).
 

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