|
Maurice 2025
Team 668's robot for Reefscape
|
Public Member Functions | |
| None | __init__ (self) |
| None | configureButtonBindings (self) |
| commands2.Command | getAutonomousCommand (self) |
Public Attributes | |
| arm | |
| autoChooser = AutoBuilder.buildAutoChooser() | |
| climb = Climb() | |
| configController = commands2.button.CommandXboxController(constants.Global.kConfigControllerPort) | |
| tuple | drive |
| driverController = commands2.button.CommandXboxController(constants.Global.kDriverControllerPort) | |
| elevator | |
| grabber = Grabber() | |
| limelight = Limelight(self.robotDrive) | |
| logger = Telemetry(constants.Global.max_speed) | |
| operatorController = commands2.button.CommandXboxController(constants.Global.kOperatorControllerPort) | |
| robotDrive | |
| score | |
| slewRateT = SlewRateLimiter(2, -3) | |
| slewRateX = SlewRateLimiter(2, -3) | |
| slewRateY = SlewRateLimiter(2, -3) | |
| wrist | |
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 :class:`.Robot` periodic methods (other than the scheduler calls). Instead, the structure of the robot (including subsystems, commands, and button mappings) should be declared here.
| None __init__ | ( | self | ) |
The container for the robot. Contains subsystems, OI devices, and commands.
| None configureButtonBindings | ( | self | ) |
Use this method to define your button->command mappings. Buttons can be created via the button factories on commands2.button.CommandGenericHID or one of its subclasses (commands2.button.CommandJoystick or command2.button.CommandXboxController).
| commands2.Command getAutonomousCommand | ( | self | ) |
Use this to pass the autonomous command to the main :class:`.Robot` class. :returns: the command to run in autonomous
| arm |
| autoChooser = AutoBuilder.buildAutoChooser() |
| climb = Climb() |
| configController = commands2.button.CommandXboxController(constants.Global.kConfigControllerPort) |
| tuple drive |
| driverController = commands2.button.CommandXboxController(constants.Global.kDriverControllerPort) |
| elevator |
| grabber = Grabber() |
| limelight = Limelight(self.robotDrive) |
| logger = Telemetry(constants.Global.max_speed) |
| operatorController = commands2.button.CommandXboxController(constants.Global.kOperatorControllerPort) |
| robotDrive |
| score |
| slewRateT = SlewRateLimiter(2, -3) |
| slewRateX = SlewRateLimiter(2, -3) |
| slewRateY = SlewRateLimiter(2, -3) |
| wrist |