Compare commits
2 Commits
ab0439e309
...
035603c6eb
Author | SHA1 | Date | |
---|---|---|---|
|
035603c6eb | ||
|
b6b2f8f5f3 |
@ -1,47 +1,47 @@
|
||||
// Copyright (c) FIRST and other WPILib contributors.
|
||||
// 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.
|
||||
// // Copyright (c) FIRST and other WPILib contributors.
|
||||
// // 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.
|
||||
|
||||
package frc.robot.Commands;
|
||||
// package frc.robot.Commands;
|
||||
|
||||
import edu.wpi.first.wpilibj2.command.Command;
|
||||
import frc.robot.Subsystems.Limelight3G;
|
||||
// import edu.wpi.first.wpilibj2.command.Command;
|
||||
// import frc.robot.Subsystems.Limelight3G;
|
||||
|
||||
|
||||
public class Tracker_Couleur_Forme extends Command {
|
||||
/** Creates a new Tracker_Couleur_Forme. */
|
||||
private Limelight3G pipeline;
|
||||
public Tracker_Couleur_Forme(Limelight3G tracker_couleur, Limelight3G tracker_forme) {
|
||||
// Use addRequirements() here to declare subsystem dependencies.
|
||||
this.pipeline = pipeline;
|
||||
this.tracker_couleur = tracker_couleur;
|
||||
this.tracker_forme = tracker_forme;
|
||||
}
|
||||
// public class Tracker_Couleur_Forme extends Command {
|
||||
// /** Creates a new Tracker_Couleur_Forme. */
|
||||
// private Limelight3G pipeline;
|
||||
// public Tracker_Couleur_Forme(Limelight3G tracker_couleur, Limelight3G tracker_forme) {
|
||||
// // Use addRequirements() here to declare subsystem dependencies.
|
||||
// this.pipeline = pipeline;
|
||||
// this.tracker_couleur = tracker_couleur;
|
||||
// this.tracker_forme = tracker_forme;
|
||||
// }
|
||||
|
||||
// Called when the command is initially scheduled.
|
||||
@Override
|
||||
public void initialize() {}
|
||||
// // Called when the command is initially scheduled.
|
||||
// @Override
|
||||
// public void initialize() {}
|
||||
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
public void execute() {
|
||||
if (pipeline == 1) {
|
||||
Limelight3G.tracker_couleur;
|
||||
}
|
||||
else if (pipeline == 2){
|
||||
Limelight3G.tracker_forme;
|
||||
}
|
||||
// // Called every time the scheduler runs while the command is scheduled.
|
||||
// @Override
|
||||
// public void execute() {
|
||||
// if (pipeline == 1) {
|
||||
// Limelight3G.tracker_couleur;
|
||||
// }
|
||||
// else if (pipeline == 2){
|
||||
// Limelight3G.tracker_forme;
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
// Called once the command ends or is interrupted.
|
||||
@Override
|
||||
public void end(boolean interrupted) {}
|
||||
// // Called once the command ends or is interrupted.
|
||||
// @Override
|
||||
// public void end(boolean interrupted) {}
|
||||
|
||||
// Returns true when the command should end.
|
||||
@Override
|
||||
public boolean isFinished() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// // Returns true when the command should end.
|
||||
// @Override
|
||||
// public boolean isFinished() {
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
|
Loading…
x
Reference in New Issue
Block a user