Skip to content

Commit

Permalink
added other directions on the dpad
Browse files Browse the repository at this point in the history
  • Loading branch information
c4glenn committed Nov 19, 2020
1 parent 540b6a0 commit baf0d7f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ public void driverControls(QQ_Opmode opmode) {

if (opmode.qq_gamepad1.dpadUp()){
opmode.robot.nav.resetIMU(0, AngleUnit.DEGREES);
} else if (opmode.qq_gamepad1.dpadLeft()){
opmode.robot.nav.resetIMU(-90, AngleUnit.DEGREES);
} else if (opmode.qq_gamepad1.dpadDown()){
opmode.robot.nav.resetIMU(180, AngleUnit.DEGREES);
} else if (opmode.qq_gamepad1.dpadRight()){
opmode.robot.nav.resetIMU(90, AngleUnit.DEGREES);
}


Expand Down

0 comments on commit baf0d7f

Please sign in to comment.