tweaked
This commit is contained in:
@ -63,7 +63,7 @@ import com.qualcomm.robotcore.util.ElapsedTime;
|
|||||||
* Remove or comment out the @Disabled line to add this opmode to the Driver Station OpMode list
|
* Remove or comment out the @Disabled line to add this opmode to the Driver Station OpMode list
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@TeleOp(name="Basic: Omni Linear OpMode", group="Linear Opmode")
|
@TeleOp(name=" CR file", group="Linear Opmode")
|
||||||
@Disabled
|
@Disabled
|
||||||
public class BasicOmniOpMode_Linear extends LinearOpMode {
|
public class BasicOmniOpMode_Linear extends LinearOpMode {
|
||||||
|
|
||||||
|
@ -272,8 +272,8 @@ public class BlueBackStage extends LinearOpMode {
|
|||||||
driveForward(5.25);
|
driveForward(5.25);
|
||||||
raisearm(80);
|
raisearm(80);
|
||||||
arm.setPower(0);
|
arm.setPower(0);
|
||||||
driveForward(-39.5);
|
driveForward(-38);
|
||||||
straightLeft(4);
|
straightLeft(5.5);
|
||||||
raisearm(80);
|
raisearm(80);
|
||||||
wrist.setPosition(0);
|
wrist.setPosition(0);
|
||||||
raisearm(100);
|
raisearm(100);
|
||||||
|
@ -253,7 +253,7 @@ public class RedBackStage extends LinearOpMode {
|
|||||||
telemetry.update();
|
telemetry.update();
|
||||||
turnLeft(90);
|
turnLeft(90);
|
||||||
straightLeft(2);
|
straightLeft(2);
|
||||||
driveForward(6.5);
|
driveForward(6);
|
||||||
raisearm(80);
|
raisearm(80);
|
||||||
arm.setPower(0);
|
arm.setPower(0);
|
||||||
driveForward(-21);
|
driveForward(-21);
|
||||||
|
@ -99,7 +99,8 @@ public class manual extends OpMode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//double num = 2.25;
|
//double num = 2.25;
|
||||||
final static double MOTOR_HI_SPEED_RATIO = 1.75;
|
final static double MOTOR_HI_SPEED_RATIO = 2;
|
||||||
|
final static double MOTOR_MID_SPEED_RATIO = 2.35;
|
||||||
final static double MOTOR_LO_SPEED_RATIO = 3.5;
|
final static double MOTOR_LO_SPEED_RATIO = 3.5;
|
||||||
final static double ARM_POWER = 3.5;
|
final static double ARM_POWER = 3.5;
|
||||||
double num = MOTOR_HI_SPEED_RATIO;
|
double num = MOTOR_HI_SPEED_RATIO;
|
||||||
@ -121,10 +122,14 @@ public class manual extends OpMode {
|
|||||||
{
|
{
|
||||||
num = MOTOR_HI_SPEED_RATIO;
|
num = MOTOR_HI_SPEED_RATIO;
|
||||||
}
|
}
|
||||||
if (gamepad1.b)
|
if (gamepad1.x)
|
||||||
{
|
{
|
||||||
num = MOTOR_LO_SPEED_RATIO;
|
num = MOTOR_LO_SPEED_RATIO;
|
||||||
}
|
}
|
||||||
|
if (gamepad1.b)
|
||||||
|
{
|
||||||
|
num = MOTOR_MID_SPEED_RATIO;
|
||||||
|
}
|
||||||
if(gamepad2.right_stick_y != 0)
|
if(gamepad2.right_stick_y != 0)
|
||||||
{
|
{
|
||||||
arm.setPower(armPower);
|
arm.setPower(armPower);
|
||||||
@ -138,7 +143,7 @@ public class manual extends OpMode {
|
|||||||
}
|
}
|
||||||
if(gamepad2.left_bumper && gamepad2.right_bumper)
|
if(gamepad2.left_bumper && gamepad2.right_bumper)
|
||||||
{
|
{
|
||||||
launch.setPosition(1);
|
launch.setPosition(0);
|
||||||
}
|
}
|
||||||
if(gamepad2.left_trigger > 0.35)
|
if(gamepad2.left_trigger > 0.35)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user