prototype auto
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user