prototype auto

This commit is contained in:
2026-01-16 20:29:15 -06:00
parent be14e719e9
commit ba251f8a46
3 changed files with 6 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ public class AutoClose_V3 extends LinearOpMode {
int b1 = 0; // 0 = no ball, 1 = green, 2 = purple int b1 = 0; // 0 = no ball, 1 = green, 2 = purple
int b2 = 0;// 0 = no ball, 1 = green, 2 = purple int b2 = 0;// 0 = no ball, 1 = green, 2 = purple
int b3 = 0;// 0 = no ball, 1 = green, 2 = purple int b3 = 0;// 0 = no ball, 1 = green, 2 = purple
public static double holdTurrPow = 0.1; // power to hold turret in place public static double holdTurrPow = 0.01; // power to hold turret in place
public Action initShooter(int vel) { public Action initShooter(int vel) {
return new Action() { return new Action() {

View File

@@ -52,7 +52,7 @@ public class AutoFar_V1 extends LinearOpMode {
int b1 = 0; // 0 = no ball, 1 = green, 2 = purple int b1 = 0; // 0 = no ball, 1 = green, 2 = purple
int b2 = 0;// 0 = no ball, 1 = green, 2 = purple int b2 = 0;// 0 = no ball, 1 = green, 2 = purple
int b3 = 0;// 0 = no ball, 1 = green, 2 = purple int b3 = 0;// 0 = no ball, 1 = green, 2 = purple
public static double holdTurrPow = 0.1; // power to hold turret in place public static double holdTurrPow = 0.01; // power to hold turret in place
public Action initShooter(int vel) { public Action initShooter(int vel) {
return new Action() { return new Action() {

View File

@@ -52,7 +52,7 @@ public class ProtoAutoClose_V3 extends LinearOpMode {
int b1 = 0; // 0 = no ball, 1 = green, 2 = purple int b1 = 0; // 0 = no ball, 1 = green, 2 = purple
int b2 = 0;// 0 = no ball, 1 = green, 2 = purple int b2 = 0;// 0 = no ball, 1 = green, 2 = purple
int b3 = 0;// 0 = no ball, 1 = green, 2 = purple int b3 = 0;// 0 = no ball, 1 = green, 2 = purple
public static double holdTurrPow = 0.1; // power to hold turret in place public static double holdTurrPow = 0.01; // power to hold turret in place
public Action initShooter(int vel) { public Action initShooter(int vel) {
return new Action() { return new Action() {
@@ -174,6 +174,9 @@ public class ProtoAutoClose_V3 extends LinearOpMode {
robot.shooter1.setPower(powPID); robot.shooter1.setPower(powPID);
robot.shooter2.setPower(powPID); robot.shooter2.setPower(powPID);
robot.turr1.setPower(holdTurrPow);
robot.turr2.setPower(holdTurrPow);
drive.updatePoseEstimate(); drive.updatePoseEstimate();
detectTag(); detectTag();