Compare commits
2 Commits
c8d0ee3a03
...
6885b80d6a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6885b80d6a | ||
|
|
2472c67adf |
@@ -100,7 +100,7 @@ public class RobotContainer {
|
|||||||
drivetrain.applyRequest(() ->
|
drivetrain.applyRequest(() ->
|
||||||
drive.withVelocityY(MathUtil.applyDeadband(-manette.getLeftX()*Math.abs(-manette.getLeftX())*MaxSpeed*0.7, 0.05))
|
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))
|
.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
|
//manette 1
|
||||||
|
|||||||
@@ -62,7 +62,8 @@ public class Limelighter extends Command {
|
|||||||
BotPose = limelight3g.getBotPoseBlue();
|
BotPose = limelight3g.getBotPoseBlue();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
x = 11.915394;
|
//x = 11.915394;
|
||||||
|
x = 4.6;
|
||||||
BotPose = limelight3g.getBotPoseRed();
|
BotPose = limelight3g.getBotPoseRed();
|
||||||
}
|
}
|
||||||
botx = BotPose[0];
|
botx = BotPose[0];
|
||||||
|
|||||||
@@ -62,7 +62,8 @@ public class LimelighterAuto extends Command {
|
|||||||
BotPose = limelight3g.getBotPoseBlue();
|
BotPose = limelight3g.getBotPoseBlue();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
x = 11.915394;
|
// x = 11.915394;
|
||||||
|
x = 4.6;
|
||||||
BotPose = limelight3g.getBotPoseRed();
|
BotPose = limelight3g.getBotPoseRed();
|
||||||
}
|
}
|
||||||
botx = BotPose[0];
|
botx = BotPose[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user