Skip to content
Toastertaster edited this page Feb 21, 2016 · 1 revision

Xbox Button numbering convention

  • 01: A (green/bottom)
  • 02: B (red/right)
  • 03: X (blue/left)
  • 04: Y (yellow/top)
  • 05: Left Bumper (L1)
  • 06: Right Bumper (R1)
  • 07: Back (left)
  • 08: Start (right)
  • 09: Left Joystick Click
  • 10: Right Joystick Click

Xbox Axes numbering convention

  • 00: Left Joystick X: -left, +right
  • 01: Left Joystick Y: -up, +down
  • 02: Left Trigger: 0 at rest, +pressed
  • 03: Right Trigger: 0 at rest, +pressed
  • 04: Right Joystick X: -left, +right
  • 05: Right Joystick Y: -up, +down
  • 06: DPad (Using GetPOV()):

Dpad Diagram

Command Mappings

DRIVER CONTROLLER (Xbox):

Button: Action: Command:
LT While held, reverse robot. InvertControls();
LB When pressed,low gear. LowGear();
RB When pressed, high gear. HighGear();
Left Stick Left Tank control. DriveJoystick();
Right Stick Right Tank control. DriveJoystick();
D-pad up arm up. ArmMove();
D-pad down arm down. ArmMove();

GUNNER CONTROLLER (xbox):

Button: Action: Command:
RT Shooter wheels pushing out. WheelSet();
LT Shooter wheels pulling in (Intake). WheelSet();
LB ServoPush. ServoPush();
RB ServoClamp. ServoClamp();
Right Stick Shooter Rotation. ShooterJoystick();
A-Button fire ball (not written yet). FireShooter();

DEFAULT COMMANDS:

✔️ Drivetrain: DriveJoystick

✔️ Arm: ArmMove

✔️ Shifter: none.

✔️ ShooterLever: AutoServo

✔️ ShooterRotation: ShooterJoystick

✔️ ShooterWheels: none.

Clone this wiki locally