g
This commit is contained in:
parent
fa6d501040
commit
304fc76be8
@ -41,7 +41,7 @@ public class Accumulateur extends SubsystemBase {
|
|||||||
Moteuracc2.set(-vitesse);
|
Moteuracc2.set(-vitesse);
|
||||||
}
|
}
|
||||||
public void Accumuler(){
|
public void Accumuler(){
|
||||||
Accumuler(vitesse.getDouble(0.3));
|
Accumuler(vitesse.getDouble(0.5));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -25,7 +25,7 @@ public class Drive extends SubsystemBase {
|
|||||||
File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve");
|
File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve");
|
||||||
|
|
||||||
public void drive(double x, double y, double zRotation){
|
public void drive(double x, double y, double zRotation){
|
||||||
swerveDrive.drive(new Translation2d(x*3, y*3), zRotation, true, false);
|
swerveDrive.drive(new Translation2d(x*3, y*3), zRotation*3, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Drive() {
|
public Drive() {
|
||||||
|
@ -26,7 +26,7 @@ public class Lanceur extends SubsystemBase {
|
|||||||
/** Creates a new Lanceur. */
|
/** Creates a new Lanceur. */
|
||||||
ShuffleboardTab dashboard = Shuffleboard.getTab("dashboard");
|
ShuffleboardTab dashboard = Shuffleboard.getTab("dashboard");
|
||||||
private GenericEntry vitesse =
|
private GenericEntry vitesse =
|
||||||
dashboard.add("vitesse", 0.8)
|
dashboard.add("vitesse", 0.9)
|
||||||
.withSize(1, 1)
|
.withSize(1, 1)
|
||||||
.withPosition(2,0)
|
.withPosition(2,0)
|
||||||
.getEntry();
|
.getEntry();
|
||||||
@ -84,7 +84,7 @@ public class Lanceur extends SubsystemBase {
|
|||||||
lanceur4.set(-vitesse);
|
lanceur4.set(-vitesse);
|
||||||
}
|
}
|
||||||
public void lancerspeaker(){
|
public void lancerspeaker(){
|
||||||
lancer(vitesse.getDouble(0.8));
|
lancer(vitesse.getDouble(0.9));
|
||||||
}
|
}
|
||||||
public void Lancertrape(){
|
public void Lancertrape(){
|
||||||
lancer(vitesse.getDouble(0.8));
|
lancer(vitesse.getDouble(0.8));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user