src/main/java/frc/robot/commands/TourelleAuto.java
@Override
  public void execute() {

    if (limelight.getTv()) {
      vitesse = tourelle.pidController(limelight.getTx());
      SmartDashboard.putString("Avertissement Cible", "YA UNE CIBLE !!!:)))))");
        if (tourelle.getSoftLimit(vitesse)) {
          tourelle.setVoltage(vitesse);
        }
        else {
          tourelle.stop();
        }
    }
    else {
      SmartDashboard.putString("Avertissement Cible", "PAS DE CIBLE !!! :(((((");
      tourelle.stop();
    }
  }
// Called every time the scheduler runs while the command is scheduled.

Called every time the scheduler runs while the command is scheduled.
Called every time the scheduler runs while the command is scheduled .
@Override
  public void execute() {
    if (limelight.getTv()) {
      vitesse = tourelle.pidController(limelight.getTx());
      SmartDashboard.putString("Avertissement Cible", "YA UNE CIBLE !!!:)))))");
        if (tourelle.getSoftLimit(vitesse)) {
          tourelle.setVoltage(vitesse);
        }
        else {
          tourelle.stop();
        }
    }
    else {
      SmartDashboard.putString("Avertissement Cible", "PAS DE CIBLE !!! :(((((");
      tourelle.stop();
    }
  }
@ Override public void execute ( ) { if ( limelight . getTv ( ) ) { vitesse = tourelle . pidController ( limelight . getTx ( ) ) ; SmartDashboard . putString ( "Avertissement Cible" , "YA UNE CIBLE !!!:)))))" ) ; if ( tourelle . getSoftLimit ( vitesse ) ) { tourelle . setVoltage ( vitesse ) ; } else { tourelle . stop ( ) ; } } else { SmartDashboard . putString ( "Avertissement Cible" , "PAS DE CIBLE !!! :(((((" ) ; tourelle . stop ( ) ; } }
Called every time the scheduler runs while the command is scheduled.
Called every time the scheduler runs while the command is scheduled .