This commit is contained in:
Antoine PerreaultE 2024-02-12 18:11:57 -05:00
commit f19e11aaf6
5 changed files with 24 additions and 4 deletions

View File

@ -4,6 +4,23 @@
"window": {
"visible": true
}
},
"Other Devices": {
"SPARK MAX [26]": {
"header": {
"open": true
}
},
"SPARK MAX [27]": {
"header": {
"open": true
}
}
},
"Solenoids": {
"window": {
"visible": true
}
}
},
"NTProvider": {
@ -37,6 +54,9 @@
}
}
},
"NetworkTables Info": {
"visible": true
},
"NetworkTables View": {
"visible": false
},

View File

@ -72,7 +72,7 @@ public class RobotContainer {
Lancerampli lancerampli = new Lancerampli(lanceur,limelight);
GrimpeurDroit grimpeurDroit = new GrimpeurDroit(grimpeur, manette::getLeftX);
GrimpeurGauche grimpeurGauche = new GrimpeurGauche(grimpeur, manette::getLeftY);
AllumeLED allumeLED = new AllumeLED(LED);
AllumeLED allumeLED = new AllumeLED(LED, accumulateur);
Pistongrimpeur pistongrimpeur = new Pistongrimpeur(grimpeur, LED);
public RobotContainer() {
dashboard.addCamera("limelight", "limelight","limelight.local:5800");

View File

@ -12,7 +12,7 @@ public class AllumeLED extends Command {
private LED led;
private Accumulateur accumulateur;
/** Creates a new AllumeLED. */
public AllumeLED(LED led) {
public AllumeLED(LED led,Accumulateur accumulateur){
this.accumulateur = accumulateur;
this.led = led;
addRequirements(led);

View File

@ -45,7 +45,7 @@ public class GrimpeurDroit extends Command {
else{
grimpeur.droit(0);
}
if(grimpeur.encoderd()>0){
if(grimpeur.encoderd()>1){
grimpeur.resetencodeurd();
grimpeur.droit(0);

View File

@ -44,7 +44,7 @@ public class GrimpeurGauche extends Command {
else{
grimpeur.gauche(0);
}
if(grimpeur.encoderd()>0){
if(grimpeur.encoderd()>1){
grimpeur.resetencodeurg();
grimpeur.gauche(0);