Package com.crossbotics.ftchelper.robot
Class Motors.Kind
java.lang.Object
com.crossbotics.ftchelper.robot.Motors.Kind
- Enclosing class:
Motors
One motor: encoder counts per output-shaft turn, and its free (no-load) speed in RPM.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleEncoder counts per turn of the output shaft (what the FTC SDK reports).final booleanTrue for a motor described in Robot.java (Motors.custom(java.lang.String, double, double),Motors.unknown(java.lang.String)), not from the catalog.final doubleTop speed with no load, RPM.final StringThe parts catalog id, e.g. -
Method Summary
-
Field Details
-
id
The parts catalog id, e.g. "gobilda-5203-312". -
countsPerRev
public final double countsPerRevEncoder counts per turn of the output shaft (what the FTC SDK reports). -
freeRpm
public final double freeRpmTop speed with no load, RPM. NaN for aMotors.custom(java.lang.String, double, double)motor whose speed is not known. -
custom
public final boolean customTrue for a motor described in Robot.java (Motors.custom(java.lang.String, double, double),Motors.unknown(java.lang.String)), not from the catalog.
-
-
Method Details
-
known
public boolean known()True if both numbers are known (a catalog motor always). -
simWords
The words for the simulator's robot file:part=IDfor a catalog motor, its own numbers (ticksPerRev=28, rpm=5800) for a custom one ("" when none is known).
-