Skip to content

Commit

Permalink
nick and truman
Browse files Browse the repository at this point in the history
  • Loading branch information
ieatred40 committed Oct 2, 2024
1 parent 742449a commit bb8f83e
Showing 1 changed file with 7 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
package org.firstinspires.ftc.teamcode.opmode.components;
package org.firstinspires.ftc.teamcode.opmode;

import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.CRServo;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import com.qualcomm.robotcore.hardware.Servo;
import com.qualcomm.robotcore.hardware.ServoController;

import org.firstinspires.ftc.robotcore.internal.camera.delegating.DelegatingCaptureSequence;


@TeleOp
Expand All @@ -24,6 +20,7 @@ public void runOpMode() throws InterruptedException {
float ly;
float lx;
float rx;
float ry;
topLeftMotor = hardwareMap.get(DcMotor.class,"FL");
topRightMotor = hardwareMap.get(DcMotor.class,"FR");
bottomLeftMotor = hardwareMap.get(DcMotor.class,"BL");
Expand All @@ -38,20 +35,12 @@ public void runOpMode() throws InterruptedException {
lx=gamepad1.left_stick_x;
ly=gamepad1.left_stick_y;
rx=gamepad1.right_stick_x;
topLeftMotor.setPower((ly-lx-rx)*motorSpeed);
// topRightMotor.setPower((ly-lx-rx)*motorSpeed);
// bottomLeftMotor.setPower((ly-lx+rx)*motorSpeed);
// bottomRightMotor.setPower((-rx+lx+ly)*motorSpeed);
/*
if (gamepad1.a) {
tail.setDirection(DcMotorSimple.Direction.FORWARD);
}
else {
tail.setDirection(DcMotorSimple.Direction.REVERSE);
}
ry=gamepad1.right_stick_y;

*/
// System.out.println();
topLeftMotor.setPower(ly);
bottomLeftMotor.setPower(lx);
topRightMotor.setPower(rx);
bottomRightMotor.setPower(rx);
}
}
}
Expand Down

0 comments on commit bb8f83e

Please sign in to comment.