commit
This commit is contained in:
@@ -16,12 +16,12 @@ public class Lanceur extends SubsystemBase {
|
||||
/** Creates a new Lanceur. */
|
||||
ShuffleboardTab dashboard = Shuffleboard.getTab("dashboard");
|
||||
private GenericEntry vitesse =
|
||||
dashboard.add("vitesse", 0.5)
|
||||
dashboard.add("vitesse", 0.8)
|
||||
.withSize(1, 1)
|
||||
.withPosition(3, 3)
|
||||
.getEntry();
|
||||
private GenericEntry vitesseamp =
|
||||
dashboard.add("vitesseamp", 0.4)
|
||||
dashboard.add("vitesseamp", 0.1)
|
||||
.withSize(1, 1)
|
||||
.withPosition(3, 4)
|
||||
.getEntry();
|
||||
@@ -42,13 +42,13 @@ public class Lanceur extends SubsystemBase {
|
||||
lanceur4.set(-vitesse);
|
||||
}
|
||||
public void lancerspeaker(){
|
||||
lancer(vitesse.getDouble(0.5));
|
||||
lancer(vitesse.getDouble(0.8));
|
||||
}
|
||||
public void lanceramp(){
|
||||
lancer(vitesseamp.getDouble(0.4));
|
||||
lancer(vitesseamp.getDouble(0.1));
|
||||
}
|
||||
public double vitesse(double vitesse){
|
||||
return lanceur1.getEncoder().getVelocity();
|
||||
return lanceur3.getEncoder().getVelocity();
|
||||
}
|
||||
public void lanceur(){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user