j'aide oli

This commit is contained in:
samuel desharnais 2024-11-04 18:23:33 -05:00
parent 810ea210b1
commit 954c82a7a0
3 changed files with 12 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -8,8 +8,16 @@ import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.Commands;
import frc.robot.Subsystems.Accumulateur;
import frc.robot.Subsystems.Drive;
import frc.robot.Subsystems.Lanceur;
import frc.robot.Subsystems.Limelight3G;
public class RobotContainer {
Lanceur lanceur= new Lanceur();
Accumulateur accumulateur = new Accumulateur();
Limelight3G limelight3G = new Limelight3G();
Drive drive = new Drive();
ShuffleboardTab dashboard = Shuffleboard.getTab("dashboard");
public RobotContainer() {
dashboard.addCamera("limelight3G", "limelight3G","limelight.local:5800")

View File

@ -48,6 +48,9 @@ public class Lanceur extends SubsystemBase {
public void tourelRotation(double x, double y, double rotation){
tourelle.set(rotation);
}
public double vitessetourel(){
return(tourelle.getEncoder().getVelocity());
}
public double distancetourel(){
return(tourelle.getEncoder().getPosition());
}