8 Commits

Author SHA1 Message Date
9618bb7b29 Changed so it cant do bad things 2025-02-04 10:42:39 -08:00
15c561cd69 Merge remote-tracking branch 'origin/branch-swiss-cheese' into branch-swiss-cheese
# Conflicts:
#	TeamCode/src/main/java/org/firstinspires/ftc/teamcode/cometbots/CometBotTeleOpDevelopment.java
#	TeamCode/src/main/java/org/firstinspires/ftc/teamcode/configs/RobotConstants.java
2025-02-03 10:03:59 -08:00
b0db84a61c Hang Successful 2025-01-31 13:53:10 -08:00
b5c7379e00 Merge remote-tracking branch 'origin/branch-swiss-cheese' into branch-swiss-cheese 2025-01-30 15:46:40 -08:00
440a57dbf4 Hang Successful 2025-01-30 15:46:31 -08:00
7900c95e82 Hang Successful 2025-01-30 15:45:36 -08:00
7dda91af9c Merge remote-tracking branch 'origin/branch-swiss-cheese' into branch-swiss-cheese 2025-01-30 15:38:52 -08:00
78195ed0f6 Specimen States written 2025-01-30 15:38:36 -08:00
7 changed files with 17 additions and 10 deletions

View File

@ -62,17 +62,16 @@ public class SpecimenAuto extends OpMode {
state = 2;
break;
case 2:
lift.toSpecimanHangHeight();
new SleepAction(5);
state = 3;
break;
case 3:
wrist.toSpecimenHang();
new SleepAction(5);
state = 4;
break;
case 4:
lift.toSpecimanReleaseHeight();
new SleepAction(5);
state = 5;
break;

View File

@ -122,7 +122,7 @@ public class CometBotTeleOpDevelopment {
private void armToBucketPosition() {
if (currentGamepad2.dpad_up && !previousGamepad2.dpad_up) {
armParked = true;
armParked = false;
arm.toBucketPosition();
wrist.toBucketPosition();
wristPickup = false;
@ -175,15 +175,15 @@ public class CometBotTeleOpDevelopment {
if (gamepad1.x && claw.getState() == ClawSubsystem.ClawState.CLOSED) {
//now slap on bar, first wrist, then arm, then claw then driver must drive away
dualSlides.toFixedPosition(500);
dualSlides.toFixedPosition(200);
dualSlides.update();
}
if (gamepad1.y) {
arm.hangBlueberrySkyhook();
wrist.hangBlueberrySkyhook();
arm.hangBlueberrySkyhook();
try {
Thread.sleep(500);
Thread.sleep(1500);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}

View File

@ -19,7 +19,7 @@ public class DualMotorSliderTest extends LinearOpMode {
private DcMotorEx liftSlideLeft;
private DcMotorEx liftSlideRight;
public static double kp = 0.0015, ki = 0, kd = 0;
public static double kp = 0.002, ki = 0, kd = 0;
private double lastError = 0;
private double integralSum = 0;
public static int targetPosition = 0;

View File

@ -14,7 +14,7 @@ public class RobotConstants {
public final static double armReverseBucket = 0.08;
public final static double armPark = 0.33;
//value for grabbing the hook Specimen
public final static double grabBlueberry = 0.69;
public final static double grabBlueberry = 0.56;
public final static double armGrabBlueberrySkyhook = 0.045;
public final static double wristGrabBlueberrySkyhook = 0.08;
public final static double armHangBlueberrySkyhook = 0.18;

View File

@ -59,7 +59,7 @@ public class DualMotorSliderSubsystem {
It's the only value we set because the variable ki and kd deal with how to handle when we're off the path.
Since we're going straight, we don't need to worry about.
*/
public final static double kp = 0.0015, ki = 0, kd = 0;
public final static double kp = 0.002, ki = 0, kd = 0;
/*
lastError/integralSum/timer - These 3 variables are placeholders in determining how much

View File

@ -59,5 +59,12 @@ public class HangMotorSubsystem {
//write in limits for protection
hang.setPower(Position);
}
public void setPower(boolean forward, double power){
if(forward)
hang.setDirection(DcMotorSimple.Direction.FORWARD);
else if(!forward)
hang.setDirection(DcMotorSimple.Direction.REVERSE);
hang.setPower(power);
}
}

View File

@ -91,6 +91,7 @@ public class HookTest extends OpMode {
}
}
}