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

#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::shoulderSpeed.front().inVal), controllerMap::shoulderSpeed.size()> m_shoulderSpeed
 
argos_lib::InterpolationMap< decltype(controllerMap::armExtensionSpeed.front().inVal), controllerMap::armExtensionSpeed.size()> m_armExtenderSpeed
 
argos_lib::InterpolationMap< decltype(controllerMap::wristSpeed.front().inVal), controllerMap::wristSpeed.size()> m_wristSpeed
 
argos_lib::InterpolationMap< decltype(controllerMap::bashSpeed.front().inVal), controllerMap::bashSpeed.size()> m_bashSpeed
 
argos_lib::InterpolationMap< decltype(controllerMap::ouiOuiSpeed.front().inVal), controllerMap::ouiOuiSpeed.size()> m_ouiOuiSpeed
 
const argos_lib::RobotInstance m_instance
 
argos_lib::SwappableControllersSubsystem m_controllers
 
OperatorControlBox m_buttonBox
 
SwerveDriveSubsystem m_swerveDrive
 
LifterSubsystem m_lifter
 
IntakeSubsystem m_intake
 
BashGuardSubsystem m_bash
 
SimpleLedSubsystem m_ledSubSystem
 
VisionSubsystem m_visionSubSystem
 
OuiOuiPlacerSubsystem m_ouiOuiPlacerSubsystem
 
HomeArmExtensionCommand m_homeArmExtensionCommand
 
ScoreConeCommand m_scoreConeCommand
 
AutonomousNothing m_autoNothing
 
AutonomousDriveForward m_autoDriveForward
 
AutonomousDriveTuning m_autoDriveTuning
 
AutonomousBalance m_autoBalance
 
AutonomousOnlyBalance m_autoOnlyBalance
 
AutonomousLoadingStation2Cone m_autoLoadingStation2Cone
 
AutonomousLoadingStationConeCubeScore m_autoConeCubeScore
 
AutonomousLoadingStation3GP m_auto3gp
 
AutonomousLoadingStation3GPTune m_auto3gp_tune
 
AutonomousPlaceExit m_autoPlaceExit
 
AutonomousCableProtector2Gp m_autoCableProtector2Gp
 
AutonomousCableProtector3GPOuiOui m_autoCableProtector3GpOuiOui
 
AutonomousCableProtectorPlaceExit m_autoCablePlaceExit
 
AutonomousScoreConePickupBalance m_autoScorePickupBalanceCone
 
AutoCableProtectSlamGrabBalance m_autoCableProtectorSlamGrabBalance
 
AutoSelector m_autoSelector
 
nt::GenericEntry * p_wristSetpoint
 
frc::SlewRateLimiter< units::scalar > m_lateralNudgeRate
 
frc::SlewRateLimiter< units::scalar > m_rotationalNudgeRate
 
frc::SlewRateLimiter< units::scalar > m_distanceNudgeRate
 
argos_lib::GenericDebouncer< AlignLedStatusm_alignLedDebouncer
 

Detailed Description

Constructor & Destructor Documentation

◆ RobotContainer()

RobotContainer::RobotContainer ( )
Todo:
Investigate why we always need an offset for one side (#207)

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_alignLedDebouncer

argos_lib::GenericDebouncer<AlignLedStatus> RobotContainer::m_alignLedDebouncer
private

◆ m_armExtenderSpeed

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

◆ m_auto3gp

AutonomousLoadingStation3GP RobotContainer::m_auto3gp
private

◆ m_auto3gp_tune

AutonomousLoadingStation3GPTune RobotContainer::m_auto3gp_tune
private

◆ m_autoBalance

AutonomousBalance RobotContainer::m_autoBalance
private

◆ m_autoCablePlaceExit

AutonomousCableProtectorPlaceExit RobotContainer::m_autoCablePlaceExit
private

◆ m_autoCableProtector2Gp

AutonomousCableProtector2Gp RobotContainer::m_autoCableProtector2Gp
private

◆ m_autoCableProtector3GpOuiOui

AutonomousCableProtector3GPOuiOui RobotContainer::m_autoCableProtector3GpOuiOui
private

◆ m_autoCableProtectorSlamGrabBalance

AutoCableProtectSlamGrabBalance RobotContainer::m_autoCableProtectorSlamGrabBalance
private

◆ m_autoConeCubeScore

AutonomousLoadingStationConeCubeScore RobotContainer::m_autoConeCubeScore
private

◆ m_autoDriveForward

AutonomousDriveForward RobotContainer::m_autoDriveForward
private

◆ m_autoDriveTuning

AutonomousDriveTuning RobotContainer::m_autoDriveTuning
private

◆ m_autoLoadingStation2Cone

AutonomousLoadingStation2Cone RobotContainer::m_autoLoadingStation2Cone
private

◆ m_autoNothing

AutonomousNothing RobotContainer::m_autoNothing
private

◆ m_autoOnlyBalance

AutonomousOnlyBalance RobotContainer::m_autoOnlyBalance
private

◆ m_autoPlaceExit

AutonomousPlaceExit RobotContainer::m_autoPlaceExit
private

◆ m_autoScorePickupBalanceCone

AutonomousScoreConePickupBalance RobotContainer::m_autoScorePickupBalanceCone
private

◆ m_autoSelector

AutoSelector RobotContainer::m_autoSelector
private

◆ m_bash

BashGuardSubsystem RobotContainer::m_bash
private

◆ m_bashSpeed

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

◆ m_buttonBox

OperatorControlBox RobotContainer::m_buttonBox
private

◆ m_controllers

argos_lib::SwappableControllersSubsystem RobotContainer::m_controllers
private

◆ m_distanceNudgeRate

frc::SlewRateLimiter<units::scalar> RobotContainer::m_distanceNudgeRate
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_homeArmExtensionCommand

HomeArmExtensionCommand RobotContainer::m_homeArmExtensionCommand
private

◆ m_instance

const argos_lib::RobotInstance RobotContainer::m_instance
private

◆ m_intake

IntakeSubsystem RobotContainer::m_intake
private

◆ m_lateralNudgeRate

frc::SlewRateLimiter<units::scalar> RobotContainer::m_lateralNudgeRate
private

◆ m_ledSubSystem

SimpleLedSubsystem RobotContainer::m_ledSubSystem
private

◆ m_lifter

LifterSubsystem RobotContainer::m_lifter
private

◆ m_ouiOuiPlacerSubsystem

OuiOuiPlacerSubsystem RobotContainer::m_ouiOuiPlacerSubsystem
private

◆ m_ouiOuiSpeed

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

◆ m_rotationalNudgeRate

frc::SlewRateLimiter<units::scalar> RobotContainer::m_rotationalNudgeRate
private

◆ m_scoreConeCommand

ScoreConeCommand RobotContainer::m_scoreConeCommand
private

◆ m_shoulderSpeed

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

◆ m_swerveDrive

SwerveDriveSubsystem RobotContainer::m_swerveDrive
private

◆ m_visionSubSystem

VisionSubsystem RobotContainer::m_visionSubSystem
private

◆ m_wristSpeed

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

◆ p_wristSetpoint

nt::GenericEntry* RobotContainer::p_wristSetpoint
private

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