no errors
This commit is contained in:
@@ -710,7 +710,7 @@ public class ProtoAutoClose_V3 extends LinearOpMode {
|
||||
bearing = result.getTx();
|
||||
}
|
||||
}
|
||||
double turretPos = robot.turr1Pos.getCurrentPosition() - (bearing / 1300);
|
||||
double turretPos = (bearing / 1300);
|
||||
robot.turr1.setPosition(turretPos);
|
||||
robot.turr2.setPosition(1 - turretPos);
|
||||
}
|
||||
|
||||
@@ -52,7 +52,6 @@ public class PIDServoTest extends LinearOpMode {
|
||||
}
|
||||
|
||||
telemetry.addData("pos", pos);
|
||||
telemetry.addData("Turret Voltage", robot.turr1Pos.getCurrentPosition());
|
||||
telemetry.addData("Spindex Voltage", robot.spin1Pos.getVoltage());
|
||||
telemetry.addData("target", target);
|
||||
telemetry.addData("Mode", mode);
|
||||
|
||||
@@ -71,7 +71,6 @@ public class PositionalServoProgrammer extends LinearOpMode {
|
||||
TELE.addData("spindexer voltage 2", robot.spin2Pos.getVoltage());
|
||||
TELE.addData("hood pos", robot.hood.getPosition());
|
||||
TELE.addData("transferServo voltage", robot.transferServoPos.getVoltage());
|
||||
TELE.addData("turret voltage", robot.turr1Pos.getCurrentPosition());
|
||||
TELE.addData("spindexer pow", robot.spin1.getPower());
|
||||
TELE.update();
|
||||
}
|
||||
|
||||
@@ -43,4 +43,16 @@ public class Servos {
|
||||
return Math.abs(pos - this.getSpinPos()) < 0.02;
|
||||
}
|
||||
|
||||
public double getTurrPos() {
|
||||
return 1.0;
|
||||
|
||||
}
|
||||
|
||||
public double setTurrPos(double pos) {
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
public boolean turretEqual(double pos) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user