This commit is contained in:
samuel desharnais 2024-02-20 18:52:56 -05:00
commit 6e867c5c99
3 changed files with 8 additions and 10 deletions

View File

@ -74,22 +74,20 @@ public class RobotContainer {
AllumeLED allumeLED = new AllumeLED(LED, accumulateur);
Pistongrimpeur pistongrimpeur = new Pistongrimpeur(grimpeur, LED);
public RobotContainer() {
dashboard.addCamera("limelight", "limelight","limelight.local:5800")
.withSize(3,4)
.withPosition(7,0);
dashboard.addCamera("USB Camera 0", "USB Camera 0","http://roborio-5618-frc.local:1181/?action=stream")
.withSize(4, 4)
.withPosition(3, 0);
NamedCommands.registerCommand("balayer",new Balayer(balayeuse, accumulateur));
NamedCommands.registerCommand("lancer", new LancerNote(lanceur, accumulateur));
NamedCommands.registerCommand("piston", new PistonFerme(grimpeur));
autoChooser = AutoBuilder.buildAutoChooser();
manette.a().whileTrue(new GuiderBas(guideur));
dashboard.addCamera("USB Camera 0", "USB Camera 0","http://roborio-5618-frc.local:1181/?action=stream")
.withSize(4, 4)
.withPosition(3, 0);
manette.a().whileTrue(new GuiderBas(guideur));
manette.b().whileTrue(new GuiderHaut(guideur));
manette.x().whileTrue(new PistonFerme(grimpeur));
@ -110,7 +108,7 @@ public class RobotContainer {
grimpeur.setDefaultCommand(new RunCommand(()->{
grimpeur.droit(MathUtil.applyDeadband(-manette.getLeftY(), 0.2));
grimpeur.gauche(MathUtil.applyDeadband(-manette.getRightY(),0.2 ));}
,grimpeur));
,grimpeur));
LED.setDefaultCommand(allumeLED);

View File

@ -25,7 +25,7 @@ public class LancerAmp extends Command {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
double vitesse = 0.1;
double vitesse = 0.15;
lancer.lanceramp();
if(lancer.vitesse(vitesse)>vitesse){
accumulateur.Accumuler();

View File

@ -21,9 +21,9 @@ import swervelib.parser.SwerveParser;
public class Drive extends SubsystemBase {
/** Creates a new Drive. */
public static final boolean kFrontLeftDriveMotorReversed = false;
public static final boolean kBackLeftDriveMotorReversed = false;
public static final boolean kFrontRightDriveMotorReversed = true;
public static final boolean kFrontLeftDriveMotorReversed = true;
public static final boolean kBackLeftDriveMotorReversed = true;
public static final boolean kFrontRightDriveMotorReversed = false;
public static final boolean kBackRightDriveMotorReversed = true;
SwerveDrive swerveDrive;