2022-Robot
Robot code for 2022 FRC Season by Argos, FRC team #1756
Loading...
Searching...
No Matches
argos_lib::SwapControllersCommand Class Reference

Swaps rolls of two controllers. Useful if one controller breaks during a match. More...

#include <swap_controllers_command.h>

Inheritance diagram for argos_lib::SwapControllersCommand:

Public Member Functions

 SwapControllersCommand (SwappableControllersSubsystem *controllers)
 
void Initialize () override
 Indicate swap has started, but don't actually swap yet. More...
 
void End (bool) override
 Swap controllers when trigger ends. More...
 

Private Attributes

SwappableControllersSubsystemm_pControllerSubsystem
 

Detailed Description

Swaps rolls of two controllers. Useful if one controller breaks during a match.

Constructor & Destructor Documentation

◆ SwapControllersCommand()

SwapControllersCommand::SwapControllersCommand ( SwappableControllersSubsystem controllers)
explicit

Member Function Documentation

◆ End()

void SwapControllersCommand::End ( bool  )
override

Swap controllers when trigger ends.

◆ Initialize()

void SwapControllersCommand::Initialize ( )
override

Indicate swap has started, but don't actually swap yet.

Member Data Documentation

◆ m_pControllerSubsystem

SwappableControllersSubsystem* argos_lib::SwapControllersCommand::m_pControllerSubsystem
private

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