Package-level declarations

Types

Link copied to clipboard
object Constants
Link copied to clipboard
object Robot : TimedRobot

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

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.

Functions

Link copied to clipboard
fun main()

Main initialization function. Do not perform any initialization here other than calling RobotBase.startRobot. Do not modify this file except to change the object passed to the startRobot call.