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

Detailed Description

Stores information about a specific motor on the robot.

#import <CBMotorParameters.h>

Properties

double stepsPerRadian
 Gets or sets the number of motor steps per radian for this motor.

Public Member Functions

(id) - initWithStepsPerRaidan:
 Initializes this CBMotorParameters object with the given parameters.

Static Public Member Functions

(CBMotorParameters *) + motorParametersWithStepsPerRadian:
 Returns a CBMotorParameters initialized with the specified parameters.

Property Documentation

- (double) stepsPerRadian
readwritenonatomicassign

Gets or sets the number of motor steps per radian for this motor.

You should only need to change this value if you replace one of the robot's motors with a custom one.

Member Function Documentation

- (id) initWithStepsPerRaidan: (double)  steps

Initializes this CBMotorParameters object with the given parameters.

+ (CBMotorParameters *) motorParametersWithStepsPerRadian: (double)  steps

Returns a CBMotorParameters initialized with the specified parameters.


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