Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
TeleOp New Drive Equations (#110)
Browse files Browse the repository at this point in the history
* New Drive Equations

* New Drive Equations fix
  • Loading branch information
DragonDev07 authored Mar 7, 2024
1 parent e10f936 commit 2325ee1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,12 @@ public void loop() {
double frontRightPower;
double backLeftPower;
double backRightPower;
double drive = -gamepad1.left_stick_y;
double strafe = gamepad1.left_stick_x;

double drive = -robot.currentGamepad1.left_stick_y;
double strafe = robot.currentGamepad1.left_stick_x;

double turn = (robot.currentGamepad1.left_trigger - robot.currentGamepad1.right_trigger) * turnSpeed;
passoverPosition = robot.passoverArmLeft.getPosition();
wristPosition = robot.wrist.getPosition();
Expand Down

0 comments on commit 2325ee1

Please sign in to comment.