2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
swap_controllers_command.h
Go to the documentation of this file.
1
4
5#pragma once
6
7#include <frc2/command/CommandBase.h>
8#include <frc2/command/CommandHelper.h>
9
11
12namespace argos_lib {
13
17 class SwapControllersCommand : public frc2::CommandHelper<frc2::CommandBase, SwapControllersCommand> {
18 public:
20
24 void Initialize() override;
25
29 void End(bool) override;
30
31 private:
33 };
34
35} // namespace argos_lib
Swaps rolls of two controllers. Useful if one controller breaks during a match.
Definition swap_controllers_command.h:17
void End(bool) override
Swap controllers when trigger ends.
Definition swap_controllers_command.cpp:16
SwappableControllersSubsystem * m_pControllerSubsystem
Definition swap_controllers_command.h:32
void Initialize() override
Indicate swap has started, but don't actually swap yet.
Definition swap_controllers_command.cpp:12
Allows two controllers to swap between "Driver" and "Operator" control schemes on the fly by swapping...
Definition swappable_controllers_subsystem.h:18
Definition swap_controllers_command.h:12