Issaquah Robotics Society

Programming resources for FIRST Robotics team 1318

Operation Contexts

Operation Contexts are similar to Shifts in the way that it allows one button to be able to different things. This time, it relies on the “context” of the robot, which can change through 2 main methods. You can change the context by either using a ControlTask or changing the context directly in a mechanism. This is often done when a sensor is triggered, indicating a game piece is inside the mechanism. The context will then change to a mode that can better manipulate that game piece.

For example, when the throughbeam inside of the end effector subsystem is broken, the context will switch into the HasGamePiece context, because the subsystem is now holding the game piece.

To create your own Operation Contexts, refrence the Adding Operation Contexts page to guide you.