This commit is contained in:
samuel desharnais 2024-11-04 18:52:16 -05:00
parent 437bf16505
commit e7be2d6428
2 changed files with 4 additions and 1 deletions

View File

@ -43,6 +43,9 @@ public class RobotContainer {
Lancer lancer= new Lancer(lanceur);
Desaccumuler desaccumuler = new Desaccumuler(accumulateur);
FollowAprilTag aprilTag = new FollowAprilTag(limelight3G, lanceur);
manette.x().whileTrue(new Lancer(lanceur));
manette.leftBumper().toggleOnTrue(new FollowAprilTag(limelight3G, lanceur));
manette.a().whileTrue(new Desaccumuler(accumulateur));
}
public Command getAutonomousCommand() {

View File

@ -47,7 +47,7 @@ public class Lanceur extends SubsystemBase {
public void lance(double vitesse){
lanceur1.set(vitesse);lanceur2.set(vitesse);
}
public void lance(){
public void lance(){
lance(vitesse.getDouble(0.2));
}
public void tourelRotation(double x, double y, double rotation){