-The :code:`TimedRobot` class is the base class recommended for most users. It provides control of the robot program through a collection of :code:`init()`, :code:`periodic()`, and :code:`exit()` methods, which are called by WPILib during specific robot states (e.g. autonomous or teleoperated). During these calls, your code typically polls each input device and acts according to the data it receives. For instance, you would typically determine the position of the joystick and state of the joystick buttons on each call and act accordingly. The ``TimedRobot`` class also provides an example of retrieving autonomous routines through SendableChooser (`Java <https://github.wpilib.org/allwpilib/docs/release/java/edu/wpi/first/wpilibj/smartdashboard/SendableChooser.html>`__/ `C++ <https://github.wpilib.org/allwpilib/docs/release/cpp/classfrc_1_1_sendable_chooser.html>`__
0 commit comments