frc3512 / Robot-2020

The source code for the 2020 FRC robot.
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

Map drivestick joystick inputs to Xbox controller #106

Closed KyleQ1 closed 3 years ago

calcmogul commented 3 years ago

This will require replacing any instances of frc::Joystick with indices 0 or 1 with a single instance of frc::XboxController. You'll find them in the subsystem periodic functions.

The header for frc::XboxController is <frc/XboxController.h> and the docs are at https://first.wpi.edu/FRC/roborio/release/docs/cpp/classfrc_1_1XboxController.html.

KyleQ1 commented 3 years ago

Drivers prefer joysticks over Xbox controllers.