Package-level declarations
Types
Link copied to clipboard
The VM is configured to automatically run this object (which basically functions as a singleton class), and to call the functions corresponding to each mode, as described in the TimedRobot documentation. This is written as an object rather than a class since there should only ever be a single instance, and it cannot take any constructor arguments. This makes it a natural fit to be an object in Kotlin.
Link copied to clipboard
object RobotContainer
This class is where the bulk of the robot should be declared. Since Command-based is a "declarative" paradigm, very little robot logic should actually be handled in the Robot periodic methods (other than the scheduler calls). Instead, the structure of the robot (including subsystems, commands, and trigger mappings) should be declared here.