Package com.crossbotics.ftchelper.robot
Class Motors
java.lang.Object
com.crossbotics.ftchelper.robot.Motors
Encoder counts per turn and top speed of the common FTC motors, by the same ids as the simulator's
parts catalog (
sim/parts/parts.json, docs/guides/parts-catalog.md): "gobilda-5203-312",
"rev-hd-hex-20"... Modules use it to turn a motor id into encoder counts per degree or per wheel turn.
The numbers are copied from the parts catalog, which has each seller's page and the date it was checked; a test checks that they still match it. Docs: docs/modules/robot.md
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne motor: encoder counts per output-shaft turn, and its free (no-load) speed in RPM. -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String, Motors.Kind> all()Every known motor, in catalog order (read only).static Motors.KindThe motor with this id.
-
Method Details
-
get
The motor with this id.- Parameters:
id- e.g. "gobilda-5203-312"- Throws:
IllegalArgumentException- for an unknown id, with the list of known ones
-
all
Every known motor, in catalog order (read only).
-