loop() — this will cause a Driver Station timeout. Use the OpMode loop() method as your main loop, or switch to LinearOpMode.Use for counting a fixed number of iterations.
for (int i = 0; i < 4; i++) {
motors[i].setPower(0);
}The correct LinearOpMode main loop pattern.
while (!isStopRequested()) {
// your code here
telemetry.update();
}The correct TeleOp main loop — SDK calls this for you.
@Override
public void loop() {
// runs repeatedly
}