mirror of
https://github.com/Team4388/2026KPopRobotHunters.git
synced 2026-06-09 00:38:03 -06:00
Better Defense
This commit is contained in:
@@ -26,16 +26,16 @@ public class StayInPosition extends PID {
|
||||
Pose2d currentPose = drive.getCurrentPose();
|
||||
double translationX = targetPose.getX() - currentPose.getX();
|
||||
double translationY = targetPose.getY() - currentPose.getY();
|
||||
if (translationX > 0.8){
|
||||
translationX = 0.8;
|
||||
if (translationX > 0.2){
|
||||
translationX = 0.2;
|
||||
}
|
||||
if (translationY > 0.8){
|
||||
translationY = 0.8;
|
||||
if (translationY > 0.2){
|
||||
translationY = 0.2;
|
||||
}
|
||||
if (Math.abs(translationX) < 0.01 && Math.abs(translationY) < 0.01) {
|
||||
driveTranslation = new Translation2d();
|
||||
} else {
|
||||
driveTranslation = new Translation2d(translationX, translationY);
|
||||
driveTranslation = new Translation2d(translationX * 4.5, translationY * 4.5);
|
||||
}
|
||||
|
||||
drive.driveFieldAngleSIP(driveTranslation, targetPose.getRotation());
|
||||
|
||||
@@ -7,12 +7,12 @@ public final class BuildConstants {
|
||||
public static final String MAVEN_GROUP = "";
|
||||
public static final String MAVEN_NAME = "2026KPopRobotHunters";
|
||||
public static final String VERSION = "unspecified";
|
||||
public static final int GIT_REVISION = 161;
|
||||
public static final String GIT_SHA = "f5ecfd0be19548215558eee7217cf6eb1b8c487b";
|
||||
public static final String GIT_DATE = "2026-03-14 20:00:21 MDT";
|
||||
public static final int GIT_REVISION = 162;
|
||||
public static final String GIT_SHA = "aac68dad5eabfaa1e098ad8cf6e42cd3bddd1ef3";
|
||||
public static final String GIT_DATE = "2026-03-14 20:20:55 MDT";
|
||||
public static final String GIT_BRANCH = "MiraOrg";
|
||||
public static final String BUILD_DATE = "2026-03-14 20:18:36 MDT";
|
||||
public static final long BUILD_UNIX_TIME = 1773541116232L;
|
||||
public static final String BUILD_DATE = "2026-03-14 20:33:21 MDT";
|
||||
public static final long BUILD_UNIX_TIME = 1773542001176L;
|
||||
public static final int DIRTY = 1;
|
||||
|
||||
private BuildConstants(){}
|
||||
|
||||
Reference in New Issue
Block a user