Update TelopV3 and Targeting for merge conflicts.
This commit is contained in:
@@ -120,7 +120,7 @@ public class TeleopV3 extends LinearOpMode {
|
|||||||
private double transferStamp = 0.0;
|
private double transferStamp = 0.0;
|
||||||
private int tickerA = 1;
|
private int tickerA = 1;
|
||||||
private boolean transferIn = false;
|
private boolean transferIn = false;
|
||||||
boolean turretInterpolate = true;
|
boolean turretInterpolate = false;
|
||||||
|
|
||||||
public static double velPrediction(double distance) {
|
public static double velPrediction(double distance) {
|
||||||
if (distance < 30) {
|
if (distance < 30) {
|
||||||
|
|||||||
@@ -97,8 +97,8 @@ public class Targeting {
|
|||||||
robotInchesY = rotatedY * unitConversionFactor;
|
robotInchesY = rotatedY * unitConversionFactor;
|
||||||
|
|
||||||
// Find approximate location in the grid
|
// Find approximate location in the grid
|
||||||
robotGridX = Math.abs(Math.floorDiv((int) robotInchesX, tileSize) + 1);
|
int gridX = Math.abs(Math.floorDiv((int) robotInchesX, tileSize) + 1);
|
||||||
robotGridY = Math.abs(Math.floorDiv((int) robotInchesY, tileSize));
|
int gridY = Math.abs(Math.floorDiv((int) robotInchesY, tileSize));
|
||||||
|
|
||||||
//clamp
|
//clamp
|
||||||
robotGridX = Math.max(0, Math.min(gridX, KNOWNTARGETING[0].length - 1));
|
robotGridX = Math.max(0, Math.min(gridX, KNOWNTARGETING[0].length - 1));
|
||||||
|
|||||||
Reference in New Issue
Block a user