Compare commits
2 Commits
2b638e1953
...
17f4fa47dc
Author | SHA1 | Date | |
---|---|---|---|
17f4fa47dc | |||
7a861d562e |
@ -214,6 +214,8 @@ public class bluefront extends LinearOpMode {
|
||||
gripper = hardwareMap.get(Servo.class, "gripper");
|
||||
arm = hardwareMap.get(DcMotor.class, "arm raise");
|
||||
wrist = hardwareMap.get(Servo.class, "wrist");
|
||||
wrist.setPosition(1);
|
||||
sleep(1000);
|
||||
// To drive forward, most robots need the motor on one side to be reversed, because the axles point in opposite directions.
|
||||
// When run, this OpMode should start both motors driving forward. So adjust these two lines based on your first test drive.
|
||||
// Note: The settings here assume direct drive on left and right wheels. Gear Reduction or 90 Deg drives may require direction flips
|
||||
@ -257,7 +259,7 @@ public class bluefront extends LinearOpMode {
|
||||
int blueleft = readColorLeft();
|
||||
int blueright = readColorRight();
|
||||
double backboard = 29;
|
||||
if (blueleft > 100)
|
||||
if (blueleft > 75)
|
||||
{
|
||||
//telemetry.addData("color sensor","left");
|
||||
if(blueleft > blueright)
|
||||
@ -283,7 +285,7 @@ public class bluefront extends LinearOpMode {
|
||||
|
||||
|
||||
}
|
||||
if (blueright > 100)
|
||||
if (blueright > 75)
|
||||
{
|
||||
if(blueleft < blueright)
|
||||
telemetry.addData("color sensor","right");
|
||||
|
Reference in New Issue
Block a user