This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while (opModeIsActive()) { | |
float x1 = gamepad1.right_stick_x, y1 = -gamepad1.right_stick_y; | |
float x2 = gamepad1.left_stick_x; | |
// Reset variables | |
float leftFrontPower = 0; | |
float leftBackPower = 0; | |
float rightFrontPower = 0; | |
float rightBackPower = 0; |