Merge branch 'main' of https://git.demerso.net/PLS5618/pratique-2025
This commit is contained in:
commit
4ddd030426
@ -1,47 +1,47 @@
|
|||||||
// Copyright (c) FIRST and other WPILib contributors.
|
// // Copyright (c) FIRST and other WPILib contributors.
|
||||||
// Open Source Software; you can modify and/or share it under the terms of
|
// // Open Source Software; you can modify and/or share it under the terms of
|
||||||
// the WPILib BSD license file in the root directory of this project.
|
// // the WPILib BSD license file in the root directory of this project.
|
||||||
|
|
||||||
package frc.robot.Commands;
|
// package frc.robot.Commands;
|
||||||
|
|
||||||
import edu.wpi.first.wpilibj2.command.Command;
|
// import edu.wpi.first.wpilibj2.command.Command;
|
||||||
import frc.robot.Subsystems.Limelight3G;
|
// import frc.robot.Subsystems.Limelight3G;
|
||||||
|
|
||||||
|
|
||||||
public class Tracker_Couleur_Forme extends Command {
|
// public class Tracker_Couleur_Forme extends Command {
|
||||||
/** Creates a new Tracker_Couleur_Forme. */
|
// /** Creates a new Tracker_Couleur_Forme. */
|
||||||
private Limelight3G pipeline;
|
// private Limelight3G pipeline;
|
||||||
public Tracker_Couleur_Forme(Limelight3G tracker_couleur, Limelight3G tracker_forme) {
|
// public Tracker_Couleur_Forme(Limelight3G tracker_couleur, Limelight3G tracker_forme) {
|
||||||
// Use addRequirements() here to declare subsystem dependencies.
|
// // Use addRequirements() here to declare subsystem dependencies.
|
||||||
this.pipeline = pipeline;
|
// this.pipeline = pipeline;
|
||||||
this.tracker_couleur = tracker_couleur;
|
// this.tracker_couleur = tracker_couleur;
|
||||||
this.tracker_forme = tracker_forme;
|
// this.tracker_forme = tracker_forme;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Called when the command is initially scheduled.
|
// // Called when the command is initially scheduled.
|
||||||
@Override
|
// @Override
|
||||||
public void initialize() {}
|
// public void initialize() {}
|
||||||
|
|
||||||
// Called every time the scheduler runs while the command is scheduled.
|
// // Called every time the scheduler runs while the command is scheduled.
|
||||||
@Override
|
// @Override
|
||||||
public void execute() {
|
// public void execute() {
|
||||||
if (pipeline == 1) {
|
// if (pipeline == 1) {
|
||||||
Limelight3G.tracker_couleur;
|
// Limelight3G.tracker_couleur;
|
||||||
}
|
// }
|
||||||
else if (pipeline == 2){
|
// else if (pipeline == 2){
|
||||||
Limelight3G.tracker_forme;
|
// Limelight3G.tracker_forme;
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Called once the command ends or is interrupted.
|
// // Called once the command ends or is interrupted.
|
||||||
@Override
|
// @Override
|
||||||
public void end(boolean interrupted) {}
|
// public void end(boolean interrupted) {}
|
||||||
|
|
||||||
// Returns true when the command should end.
|
// // Returns true when the command should end.
|
||||||
@Override
|
// @Override
|
||||||
public boolean isFinished() {
|
// public boolean isFinished() {
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user