limelight

This commit is contained in:
samuel desharnais
2026-04-02 17:13:54 -04:00
parent bdffb48ece
commit 2472c67adf
3 changed files with 5 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ public class RobotContainer {
drivetrain.applyRequest(() ->
drive.withVelocityY(MathUtil.applyDeadband(-manette.getLeftX()*Math.abs(-manette.getLeftX())*MaxSpeed*0.7, 0.05))
.withVelocityX(MathUtil.applyDeadband(-manette.getLeftY()*Math.abs(-manette.getLeftY())*MaxSpeed*0.7, 0.05))
.withRotationalRate(MathUtil.applyDeadband(-manette.getRightX()*Math.abs(-manette.getRightX())*MaxAngularRate, 0.05))
.withRotationalRate(MathUtil.applyDeadband(-manette.getRightX()*Math.abs(-manette.getRightX())*MaxAngularRate*1.5, 0.05))
)
);
//manette 1

View File

@@ -62,7 +62,8 @@ public class Limelighter extends Command {
BotPose = limelight3g.getBotPoseBlue();
}
else {
x = 11.915394;
//x = 11.915394;
x = 4.6;
BotPose = limelight3g.getBotPoseRed();
}
botx = BotPose[0];

View File

@@ -62,7 +62,8 @@ public class LimelighterAuto extends Command {
BotPose = limelight3g.getBotPoseBlue();
}
else {
x = 11.915394;
// x = 11.915394;
x = 4.6;
BotPose = limelight3g.getBotPoseRed();
}
botx = BotPose[0];