Open danielbrownmsm opened 1 year ago
Summary We should go ahead and add the other gamepad buttons to RobotContainer. The a, b, and back buttons on gamepad1 are already added over at RobotContainer.h:
/** * User interfaces * - Gamepads * - Joystick Buttons */ 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_;
And at RobotContainer.cpp:
gamepad1_ = std::make_shared<frc::Joystick>(gamepad1_id); gamepad2_ = std::make_shared<frc::Joystick>(gamepad2_id); // Initialize the joystick buttons driver_a_button_ = std::make_shared<frc2::JoystickButton>(gamepad1_.get(), A_BUTTON);
Work Required
Verification
Add Other Buttons
Summary We should go ahead and add the other gamepad buttons to RobotContainer. The a, b, and back buttons on gamepad1 are already added over at RobotContainer.h:
And at RobotContainer.cpp:
Work Required
Verification