-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRobotContainer.h
More file actions
73 lines (56 loc) · 2.94 KB
/
RobotContainer.h
File metadata and controls
73 lines (56 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#pragma once
#include <frc2/command/Command.h>
#include "frc/Joystick.h"
#include "frc2/command/button/JoystickButton.h"
/**
* This class is where the bulk of the robot should be declared. Since
* Command-based is a "declarative" paradigm, very little robot logic should
* actually be handled in the {@link Robot} periodic methods (other than the
* scheduler calls). Instead, the structure of the robot (including subsystems,
* commands, and button mappings) should be declared here.
*/
class RobotContainer {
public:
RobotContainer();
frc2::Command* GetAutonomousCommand();
private:
// The robot's subsystems and commands are defined here...
void ConfigureButtonBindings();
std::shared_ptr<frc::Joystick> gamepad1_;
std::shared_ptr<frc::Joystick> gamepad2_;
std::shared_ptr<frc2::JoystickButton> driver_a_button_;
std::shared_ptr<frc2::JoystickButton> driver_b_button_;
std::shared_ptr<frc2::JoystickButton> driver_back_button_;
std::shared_ptr<frc2::JoystickButton> driver_left_bumper_;
std::shared_ptr<frc2::JoystickButton> driver_right_bumper_;
std::shared_ptr<frc2::JoystickButton> manip_a_button_;
std::shared_ptr<frc2::JoystickButton> manip_b_button_;
std::shared_ptr<frc2::JoystickButton> manip_left_stick_button_;
std::shared_ptr<frc2::JoystickButton> manip_right_stick_button;
std::shared_ptr<frc2::JoystickButton> manip_trigger_button_;
std::shared_ptr<frc2::JoystickButton> manip_left_button_;
std::shared_ptr<frc2::JoystickButton> manip_bottom_right_button_;
std::shared_ptr<frc2::JoystickButton> manip_top_right_button_;
std::shared_ptr<frc2::JoystickButton> manip_botton_left_button_;
std::shared_ptr<frc2::JoystickButton> manip_top_left_button_;
std::shared_ptr<frc2::JoystickButton> manip_seven_button_;
std::shared_ptr<frc2::JoystickButton> manip_eight_button_;
std::shared_ptr<frc2::JoystickButton> manip_nine_button_;
std::shared_ptr<frc2::JoystickButton> manip_ten_button_;
std::shared_ptr<frc2::JoystickButton> manip_eleven_button_;
std::shared_ptr<frc2::JoystickButton> manip_twelve_button_;
std::shared_ptr<frc2::JoystickButton> manip_A_button_;
std::shared_ptr<frc2::JoystickButton> manip_B_button_;
std::shared_ptr<frc2::JoystickButton> manip_X_button_;
std::shared_ptr<frc2::JoystickButton> manip_Y_button_;
std::shared_ptr<frc2::JoystickButton> manip_RB_button_;
std::shared_ptr<frc2::JoystickButton> manip_LB_button_;
std::shared_ptr<frc2::JoystickButton> manip_RT_button_;
std::shared_ptr<frc2::JoystickButton> manip_LT_button_;
std::shared_ptr<frc2::JoystickButton> manip_back_button_;
std::shared_ptr<frc2::JoystickButton> manip_start_button_;
std::shared_ptr<frc2::JoystickButton> manip_mode_button_;
};