This commit is contained in:
Antoine PerreaultE 2024-02-27 18:57:01 -05:00
parent 36859ec3ad
commit f1f3934080
7 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@
"front": -12.375,
"left": 12.375
},
"absoluteEncoderOffset": 0.416259765625,
"absoluteEncoderOffset":299.443,
"drive": {
"type": "sparkmax",
"id": 8,

View File

@ -3,7 +3,7 @@
"front": -12.375,
"left": -12.375
},
"absoluteEncoderOffset": -0.023193359375,
"absoluteEncoderOffset": 95.537,
"drive": {
"type": "sparkmax",
"id": 11,

View File

@ -3,7 +3,7 @@
"front": 12.375,
"left": 12.375
},
"absoluteEncoderOffset": 0.2744140625,
"absoluteEncoderOffset":348.223 ,
"drive": {
"type": "sparkmax",
"id": 2,

View File

@ -3,7 +3,7 @@
"front": 12.375,
"left": -12.375
},
"absoluteEncoderOffset": -0.297119140625,
"absoluteEncoderOffset": 200.215,
"drive": {
"type": "sparkmax",
"id": 18,

View File

@ -27,7 +27,7 @@ public class LancerAmp extends Command {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
double vitesse = 0.15;
double vitesse = 0.3;
lancer.lanceramp();
if(lancer.vitesse(vitesse)>vitesse){
accumulateur.Accumuler();

View File

@ -18,7 +18,7 @@ public class Accumulateur extends SubsystemBase {
ShuffleboardTab dashboard = Shuffleboard.getTab("dashboard");
private GenericEntry vitesse =
dashboard.add("vitesseacc", 0.5)
dashboard.add("vitesseacc", 0.6)
.withSize(1, 1)
.withPosition(0, 0)
.getEntry();
@ -41,7 +41,7 @@ public class Accumulateur extends SubsystemBase {
Moteuracc2.set(-vitesse);
}
public void Accumuler(){
Accumuler(vitesse.getDouble(0.5));
Accumuler(vitesse.getDouble(0.6));
}
@Override

View File

@ -31,7 +31,7 @@ public class Lanceur extends SubsystemBase {
.withPosition(2,0)
.getEntry();
private GenericEntry vitesseamp =
dashboard.add("vitesseamp", 0.15)
dashboard.add("vitesseamp", 0.3)
.withSize(1, 1)
.withPosition(1,0)
.getEntry();
@ -90,7 +90,7 @@ public class Lanceur extends SubsystemBase {
lancer(vitesse.getDouble(0.8));
}
public void lanceramp(){
lancer(vitesseamp.getDouble(0.1));
lancer(vitesseamp.getDouble(0.3));
}
public double vitesse(double vitesse){
return lanceur3.getEncoder().getVelocity();