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

#include <operator_control_box.h>

Inheritance diagram for OperatorControlBox:

Public Member Functions

 OperatorControlBox (int port)
 
frc2::Trigger TriggerScoringPositionUpdated ()
 
ScoringPosition GetScoringPosition ()
 
frc2::Trigger TriggerStowPosition ()
 
frc2::Trigger TriggerLED ()
 
bool GetLEDStatus ()
 
frc2::Trigger TriggerSpareSwitch ()
 
bool GetSpareSwitchStatus ()
 
frc2::Trigger TriggerGamePiece ()
 
bool GetGamePieceStatus ()
 
GamePiece GetGamePiece ()
 
frc2::Trigger TriggerBashGuard ()
 
bool GetBashGuardStatus ()
 
void Update ()
 

Private Types

enum  BoxButtonIndex {
  boxIndex_leftGrid_leftCone = 1 , boxIndex_leftGrid_middleCube = 2 , boxIndex_leftGrid_rightCone = 3 , boxIndex_middleGrid_leftCone = 4 ,
  boxIndex_middleGrid_middleCube = 5 , boxIndex_middleGrid_rightCone = 6 , boxIndex_rightGrid_leftCone = 7 , boxIndex_rightGrid_middleCube = 8 ,
  boxIndex_rightGrid_rightCone = 9 , boxIndex_stowPosition = 10 , boxIndex_high = 11 , boxIndex_middle = 12 ,
  boxIndex_low = 13 , boxIndex_led = 14 , boxIndex_game_piece = 15 , boxIndex_bash = 16 ,
  boxIndex_spare_switch = 17 , boxIndex_invalid
}
 

Private Member Functions

ScoringPosition UpdatePosition ()
 

Private Attributes

frc::EventLoop * m_pEvent
 
ScoringPosition m_scoringPosition
 

Detailed Description

Member Enumeration Documentation

◆ BoxButtonIndex

Enumerator
boxIndex_leftGrid_leftCone 
boxIndex_leftGrid_middleCube 
boxIndex_leftGrid_rightCone 
boxIndex_middleGrid_leftCone 
boxIndex_middleGrid_middleCube 
boxIndex_middleGrid_rightCone 
boxIndex_rightGrid_leftCone 
boxIndex_rightGrid_middleCube 
boxIndex_rightGrid_rightCone 
boxIndex_stowPosition 
boxIndex_high 
boxIndex_middle 
boxIndex_low 
boxIndex_led 
boxIndex_game_piece 
boxIndex_bash 
boxIndex_spare_switch 
boxIndex_invalid 

Constructor & Destructor Documentation

◆ OperatorControlBox()

OperatorControlBox::OperatorControlBox ( int  port)
explicit

Member Function Documentation

◆ GetBashGuardStatus()

bool OperatorControlBox::GetBashGuardStatus ( )

◆ GetGamePiece()

GamePiece OperatorControlBox::GetGamePiece ( )

◆ GetGamePieceStatus()

bool OperatorControlBox::GetGamePieceStatus ( )

◆ GetLEDStatus()

bool OperatorControlBox::GetLEDStatus ( )

◆ GetScoringPosition()

ScoringPosition OperatorControlBox::GetScoringPosition ( )

◆ GetSpareSwitchStatus()

bool OperatorControlBox::GetSpareSwitchStatus ( )

◆ TriggerBashGuard()

frc2::Trigger OperatorControlBox::TriggerBashGuard ( )

◆ TriggerGamePiece()

frc2::Trigger OperatorControlBox::TriggerGamePiece ( )

◆ TriggerLED()

frc2::Trigger OperatorControlBox::TriggerLED ( )

◆ TriggerScoringPositionUpdated()

frc2::Trigger OperatorControlBox::TriggerScoringPositionUpdated ( )

◆ TriggerSpareSwitch()

frc2::Trigger OperatorControlBox::TriggerSpareSwitch ( )

◆ TriggerStowPosition()

frc2::Trigger OperatorControlBox::TriggerStowPosition ( )

◆ Update()

void OperatorControlBox::Update ( )

◆ UpdatePosition()

ScoringPosition OperatorControlBox::UpdatePosition ( )
private

Member Data Documentation

◆ m_pEvent

frc::EventLoop* OperatorControlBox::m_pEvent
private

◆ m_scoringPosition

ScoringPosition OperatorControlBox::m_scoringPosition
private

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