Skip to content

Boss: keep every motor legal

W1
SolvePhase 1 of 320 XP

Too fast

The arm code worked out 1.4. A motor controller cannot do 1.4.

Add an if that pulls anything above 1.0 back down to 1.0. Leave the intake alone - 0.3 is already fine, and a clamp that changes a good number is worse than no clamp at all.

The checks are looking for

  • Main needs a method: public static void main(String[] args)That line is where your program starts. Leave it exactly as it is and write inside it.

What it should print

Arm: 1.0
Intake: 0.3

Beta

3 hints left. Asking is free.

Next up is Level up Too slow as well

Press Run and the robot drives here. After a Check, any test that drove the robot has a “Replay this” button next to it.

Boss: keep every motor legal · Robot On-Ramp