2025-Robot
Robot code for 2025 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)
 
auto & GetSwerveDrive ()
 

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::driveSpeed_placing.front().inVal), controllerMap::driveSpeed_placing.size()> m_driveSpeedMap_placing
 
argos_lib::InterpolationMap< decltype(controllerMap::driveSpeed_placing_lowAlgae.front().inVal), controllerMap::driveSpeed_placing_lowAlgae.size()> m_driveSpeedMap_placing_lowAlgae
 
argos_lib::InterpolationMap< decltype(controllerMap::driveSpeed_intake.front().inVal), controllerMap::driveSpeed_intake.size()> m_driveSpeedMap_intake
 
argos_lib::InterpolationMap< decltype(controllerMap::driveSpeed_intakeAlgae.front().inVal), controllerMap::driveSpeed_intakeAlgae.size()> m_driveSpeedMap_intakeAlgae
 
argos_lib::InterpolationMap< decltype(controllerMap::driveRotSpeed.front().inVal), controllerMap::driveRotSpeed.size()> m_driveRotSpeed
 
argos_lib::InterpolationMap< decltype(controllerMap::driveRotSpeed_placing.front().inVal), controllerMap::driveRotSpeed_placing.size()> m_driveRotSpeed_placing
 
const argos_lib::RobotInstance m_instance
 
argos_lib::SwappableControllersSubsystem m_controllers
 
OperatorController m_macropadController
 
SwerveDriveSubsystem m_swerveDrive
 
SimpleLedSubsystem m_ledSubSystem
 
VisionSubsystem m_visionSubSystem
 
ElevatorSubsystem m_elevatorSubSystem
 
ClimberSubsystem m_climberSubSystem
 
IntakeSubsystem m_intakeSubSystem
 
AutonomousNothing m_autoNothing
 
AutonomousL1FE m_autoL1FE
 
AutonomousChoreoTest m_autoChoreoTest
 
AutonomousForward m_autoForward
 
AutonomousL1GH m_autoL1GH
 
AutonomousL1IJ m_autoL1IJ
 
AutonomousL4GAlgae m_autoL4GAlgae
 
AutonomousL4GAlgaeVision m_autoL4GAlgaeVision
 
AutonomousL4G m_autoL4G
 
AutonomousL4EDC m_autoL4EDC
 
AutonomousL4JKL m_autoL4JKL
 
AutonomousL1JL4L m_autoL1JL4L
 
AutonomousL1L4EDC m_autoL1L4EDC
 
AutonomousL1L4JKL m_autoL1L4JKL
 
AutoSelector m_autoSelector
 
frc::Joystick m_keyboard {0}
 
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 ( )

◆ GetSwerveDrive()

auto & RobotContainer::GetSwerveDrive ( )
inline

◆ SetLedsConnectedBrightness()

void RobotContainer::SetLedsConnectedBrightness ( bool connected)

Member Data Documentation

◆ m_autoChoreoTest

AutonomousChoreoTest RobotContainer::m_autoChoreoTest
private

◆ m_autoForward

AutonomousForward RobotContainer::m_autoForward
private

◆ m_autoL1FE

AutonomousL1FE RobotContainer::m_autoL1FE
private

◆ m_autoL1GH

AutonomousL1GH RobotContainer::m_autoL1GH
private

◆ m_autoL1IJ

AutonomousL1IJ RobotContainer::m_autoL1IJ
private

◆ m_autoL1JL4L

AutonomousL1JL4L RobotContainer::m_autoL1JL4L
private

◆ m_autoL1L4EDC

AutonomousL1L4EDC RobotContainer::m_autoL1L4EDC
private

◆ m_autoL1L4JKL

AutonomousL1L4JKL RobotContainer::m_autoL1L4JKL
private

◆ m_autoL4EDC

AutonomousL4EDC RobotContainer::m_autoL4EDC
private

◆ m_autoL4G

AutonomousL4G RobotContainer::m_autoL4G
private

◆ m_autoL4GAlgae

AutonomousL4GAlgae RobotContainer::m_autoL4GAlgae
private

◆ m_autoL4GAlgaeVision

AutonomousL4GAlgaeVision RobotContainer::m_autoL4GAlgaeVision
private

◆ m_autoL4JKL

AutonomousL4JKL RobotContainer::m_autoL4JKL
private

◆ m_autoNothing

AutonomousNothing RobotContainer::m_autoNothing
private

◆ m_autoSelector

AutoSelector RobotContainer::m_autoSelector
private

◆ m_climberSubSystem

ClimberSubsystem RobotContainer::m_climberSubSystem
private

◆ m_controllers

argos_lib::SwappableControllersSubsystem RobotContainer::m_controllers
private

◆ m_driveRotSpeed

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

◆ m_driveRotSpeed_placing

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

◆ m_driveSpeedMap

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

◆ m_driveSpeedMap_intake

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

◆ m_driveSpeedMap_intakeAlgae

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

◆ m_driveSpeedMap_placing

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

◆ m_driveSpeedMap_placing_lowAlgae

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

◆ m_elevatorSubSystem

ElevatorSubsystem RobotContainer::m_elevatorSubSystem
private

◆ m_instance

const argos_lib::RobotInstance RobotContainer::m_instance
private

◆ m_intakeSubSystem

IntakeSubsystem RobotContainer::m_intakeSubSystem
private

◆ m_keyboard

frc::Joystick RobotContainer::m_keyboard {0}
private

◆ m_ledSubSystem

SimpleLedSubsystem RobotContainer::m_ledSubSystem
private

◆ m_macropadController

OperatorController RobotContainer::m_macropadController
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: