2024-Robot
Robot code for 2024 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
RobotContainer Class Reference

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. More...

#include <RobotContainer.h>

Public Member Functions

 RobotContainer ()
 
frc2::Command * GetAutonomousCommand ()
 
void Disable ()
 Called once when robot is disabled.
 
void Enable ()
 Called once when robot is enabled.
 
void AllianceChanged ()
 Called when the alliance is changed.
 
void SetLedsConnectedBrightness (bool connected)
 

Private Member Functions

void ConfigureBindings ()
 

Private Attributes

argos_lib::InterpolationMap< decltype(controllerMap::driveSpeed.front().inVal), controllerMap::driveSpeed.size()> m_driveSpeedMap
 
argos_lib::InterpolationMap< decltype(controllerMap::driveRotSpeed.front().inVal), controllerMap::driveRotSpeed.size()> m_driveRotSpeed
 
argos_lib::InterpolationMap< decltype(controllerMap::elevatorSpeed.front().inVal), controllerMap::elevatorSpeed.size()> m_elevatorSpeedMap
 
argos_lib::InterpolationMap< decltype(controllerMap::elevatorRotateSpeed.front().inVal), controllerMap::elevatorRotateSpeed.size()> m_elevatorRotateSpeedMap
 
argos_lib::InterpolationMap< decltype(controllerMap::climberSpeed.front().inVal), controllerMap::climberSpeed.size()> m_climberSpeedMap
 
const argos_lib::RobotInstance m_instance
 
argos_lib::SwappableControllersSubsystem m_controllers
 
SwerveDriveSubsystem m_swerveDrive
 
SimpleLedSubsystem m_ledSubSystem
 
ShooterSubsystem m_ShooterSubSystem
 
VisionSubsystem m_visionSubSystem
 
IntakeSubsystem m_intakeSubsystem
 
ClimberSubsystem m_climberSubsystem
 
ElevatorSubsystem m_elevatorSubsystem
 
IntakeCommand m_IntakeCommand
 
ShooterCommand m_ShooterCommand
 
AutoAimCommand m_autoAimCommand
 
ClimberHomingCommand m_ClimberHomeCommand
 
GoToAmpPositionCommand m_GoToAmpPositionCommand
 
GoToPodiumPositionCommand m_GoToHighPodiumPositionCommand
 
GoToPodiumPositionCommand m_GoToLowPodiumPositionCommand
 
GoToSubwooferPositionCommand m_GoToSubwooferPositionCommand
 
GoToTrapPositionCommand m_GoToTrapPositionCommand
 
ClimberCommand m_ClimberCommand
 
CrossfieldShotCommand m_CrossfieldShotCommand
 
AutonomousNothing m_autoNothing
 
AutonomousChoreoTest m_autoChoreoTest
 
AutonomousCenter2Wing m_autoCenter2wing
 
AutonomousSource1 m_autoSource1
 
AutonomousSourceSideSubwoofer2Piece m_autoSourceSideSubwoofer2Piece
 
AutonomousSource2 m_autoSource2
 
AutonomousSourceSideSteal2 m_autoSourceSideSteal2
 
AutonomousAmpSideSubwoofer2Piece m_autoAmpSideSubwoofer2Piece
 
AutonomousAmpSideSubwoofer2PieceSkip m_autoAmpSideSubwoofer2PieceSkip
 
AutonomousAmpSideSubwoofer2PieceSkip m_autoAmpSideSubwoofer2PieceChaos
 
AutonomousSourceSideSubwoofer3PieceSteal m_autoSourceSideSubwoofer3PieceSteal
 
AutonomousZeroNote m_autoZeroNote
 
AutonomousSourceSideSubwoofer4Piece m_autoSourceSideSubwoofer4Piece
 
AutonomousCenterSubwoofer4Piece m_autoCenterSubwoofer4Piece
 
AutonomousCenterSubwoofer6Piece m_autoCenterSubwoofer6Piece
 
AutonomousSourceSideSubwoofer5Piece m_autoSourceSideSubwoofer5Piece
 
AutoSelector m_autoSelector
 
bool m_transitionedFromAuto
 True indicates latest enable was during autonomous.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RobotContainer()

RobotContainer::RobotContainer ( )

Member Function Documentation

◆ AllianceChanged()

void RobotContainer::AllianceChanged ( )

Called when the alliance is changed.

◆ ConfigureBindings()

void RobotContainer::ConfigureBindings ( )
private

◆ Disable()

void RobotContainer::Disable ( )

Called once when robot is disabled.

◆ Enable()

void RobotContainer::Enable ( )

Called once when robot is enabled.

◆ GetAutonomousCommand()

frc2::Command * RobotContainer::GetAutonomousCommand ( )

◆ SetLedsConnectedBrightness()

void RobotContainer::SetLedsConnectedBrightness ( bool  connected)

Member Data Documentation

◆ m_autoAimCommand

AutoAimCommand RobotContainer::m_autoAimCommand
private

◆ m_autoAmpSideSubwoofer2Piece

AutonomousAmpSideSubwoofer2Piece RobotContainer::m_autoAmpSideSubwoofer2Piece
private

◆ m_autoAmpSideSubwoofer2PieceChaos

AutonomousAmpSideSubwoofer2PieceSkip RobotContainer::m_autoAmpSideSubwoofer2PieceChaos
private

◆ m_autoAmpSideSubwoofer2PieceSkip

AutonomousAmpSideSubwoofer2PieceSkip RobotContainer::m_autoAmpSideSubwoofer2PieceSkip
private

◆ m_autoCenter2wing

AutonomousCenter2Wing RobotContainer::m_autoCenter2wing
private

◆ m_autoCenterSubwoofer4Piece

AutonomousCenterSubwoofer4Piece RobotContainer::m_autoCenterSubwoofer4Piece
private

◆ m_autoCenterSubwoofer6Piece

AutonomousCenterSubwoofer6Piece RobotContainer::m_autoCenterSubwoofer6Piece
private

◆ m_autoChoreoTest

AutonomousChoreoTest RobotContainer::m_autoChoreoTest
private

◆ m_autoNothing

AutonomousNothing RobotContainer::m_autoNothing
private

◆ m_autoSelector

AutoSelector RobotContainer::m_autoSelector
private

◆ m_autoSource1

AutonomousSource1 RobotContainer::m_autoSource1
private

◆ m_autoSource2

AutonomousSource2 RobotContainer::m_autoSource2
private

◆ m_autoSourceSideSteal2

AutonomousSourceSideSteal2 RobotContainer::m_autoSourceSideSteal2
private

◆ m_autoSourceSideSubwoofer2Piece

AutonomousSourceSideSubwoofer2Piece RobotContainer::m_autoSourceSideSubwoofer2Piece
private

◆ m_autoSourceSideSubwoofer3PieceSteal

AutonomousSourceSideSubwoofer3PieceSteal RobotContainer::m_autoSourceSideSubwoofer3PieceSteal
private

◆ m_autoSourceSideSubwoofer4Piece

AutonomousSourceSideSubwoofer4Piece RobotContainer::m_autoSourceSideSubwoofer4Piece
private

◆ m_autoSourceSideSubwoofer5Piece

AutonomousSourceSideSubwoofer5Piece RobotContainer::m_autoSourceSideSubwoofer5Piece
private

◆ m_autoZeroNote

AutonomousZeroNote RobotContainer::m_autoZeroNote
private

◆ m_ClimberCommand

ClimberCommand RobotContainer::m_ClimberCommand
private

◆ m_ClimberHomeCommand

ClimberHomingCommand RobotContainer::m_ClimberHomeCommand
private

◆ m_climberSpeedMap

argos_lib::InterpolationMap<decltype(controllerMap::climberSpeed.front().inVal), controllerMap::climberSpeed.size()> RobotContainer::m_climberSpeedMap
private

◆ m_climberSubsystem

ClimberSubsystem RobotContainer::m_climberSubsystem
private

◆ m_controllers

argos_lib::SwappableControllersSubsystem RobotContainer::m_controllers
private

◆ m_CrossfieldShotCommand

CrossfieldShotCommand RobotContainer::m_CrossfieldShotCommand
private

◆ m_driveRotSpeed

argos_lib::InterpolationMap<decltype(controllerMap::driveRotSpeed.front().inVal), controllerMap::driveRotSpeed.size()> RobotContainer::m_driveRotSpeed
private

◆ m_driveSpeedMap

argos_lib::InterpolationMap<decltype(controllerMap::driveSpeed.front().inVal), controllerMap::driveSpeed.size()> RobotContainer::m_driveSpeedMap
private

◆ m_elevatorRotateSpeedMap

argos_lib::InterpolationMap<decltype(controllerMap::elevatorRotateSpeed.front().inVal), controllerMap::elevatorRotateSpeed.size()> RobotContainer::m_elevatorRotateSpeedMap
private

◆ m_elevatorSpeedMap

argos_lib::InterpolationMap<decltype(controllerMap::elevatorSpeed.front().inVal), controllerMap::elevatorSpeed.size()> RobotContainer::m_elevatorSpeedMap
private

◆ m_elevatorSubsystem

ElevatorSubsystem RobotContainer::m_elevatorSubsystem
private

◆ m_GoToAmpPositionCommand

GoToAmpPositionCommand RobotContainer::m_GoToAmpPositionCommand
private

◆ m_GoToHighPodiumPositionCommand

GoToPodiumPositionCommand RobotContainer::m_GoToHighPodiumPositionCommand
private

◆ m_GoToLowPodiumPositionCommand

GoToPodiumPositionCommand RobotContainer::m_GoToLowPodiumPositionCommand
private

◆ m_GoToSubwooferPositionCommand

GoToSubwooferPositionCommand RobotContainer::m_GoToSubwooferPositionCommand
private

◆ m_GoToTrapPositionCommand

GoToTrapPositionCommand RobotContainer::m_GoToTrapPositionCommand
private

◆ m_instance

const argos_lib::RobotInstance RobotContainer::m_instance
private

◆ m_IntakeCommand

IntakeCommand RobotContainer::m_IntakeCommand
private

◆ m_intakeSubsystem

IntakeSubsystem RobotContainer::m_intakeSubsystem
private

◆ m_ledSubSystem

SimpleLedSubsystem RobotContainer::m_ledSubSystem
private

◆ m_ShooterCommand

ShooterCommand RobotContainer::m_ShooterCommand
private

◆ m_ShooterSubSystem

ShooterSubsystem RobotContainer::m_ShooterSubSystem
private

◆ m_swerveDrive

SwerveDriveSubsystem RobotContainer::m_swerveDrive
private

◆ m_transitionedFromAuto

bool RobotContainer::m_transitionedFromAuto
private

True indicates latest enable was during autonomous.

◆ m_visionSubSystem

VisionSubsystem RobotContainer::m_visionSubSystem
private

The documentation for this class was generated from the following files: