forked from ftctechnh/ftc_app
-
Notifications
You must be signed in to change notification settings - Fork 0
Opmode
cezarmathe edited this page Mar 4, 2019
·
2 revisions
The opmode package contains two standards for all opmodes:
- AutonomousStandard
- TeleOpStandard
- They general fields like the Robot and the Drivetrain
- They automatically initialize the robot using
Robot.build(hardwareMap);
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 ofopModeIsActive()
In AutonomousStandard, the opModeLoop()
is executed linearly, only once, after play, after which a loop runs until the opmode finishes.