Skip to content
cezarmathe edited this page Mar 4, 2019 · 2 revisions

The opmode package contains two standards for all opmodes:

  • AutonomousStandard
  • TeleOpStandard

Advantages

  1. They general fields like the Robot and the Drivetrain
  2. They automatically initialize the robot using Robot.build(hardwareMap);

How to use

These two standards have two abstract methods that need to be implemented:

  • initialize() - the initialization process executed after init and before play
  • opModeLoop() - the loop that is executed continuously after play, with respect to the result of opModeIsActive()

AutonomousStandard

In AutonomousStandard, the opModeLoop() is executed linearly, only once, after play, after which a loop runs until the opmode finishes.

Clone this wiki locally