Compare commits

..

2 Commits

Author SHA1 Message Date
a0dc53800f mode auto 1 2024-12-11 18:49:06 -05:00
99c50dc4fc desaccumuler mode auto 2024-12-11 18:45:09 -05:00
2 changed files with 25 additions and 0 deletions

View File

@ -27,6 +27,18 @@
"waitTime": 2.0 "waitTime": 2.0
} }
}, },
{
"type": "named",
"data": {
"name": "lancer"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.0
}
},
{ {
"type": "named", "type": "named",
"data": { "data": {
@ -52,6 +64,18 @@
"waitTime": 2.0 "waitTime": 2.0
} }
}, },
{
"type": "named",
"data": {
"name": "lancer"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.0
}
},
{ {
"type": "named", "type": "named",
"data": { "data": {

View File

@ -32,6 +32,7 @@ public class RobotContainer {
CommandXboxController manette = new CommandXboxController(0); CommandXboxController manette = new CommandXboxController(0);
public RobotContainer() { public RobotContainer() {
NamedCommands.registerCommand("lancer", new Lancer(lanceur, accumulateur)); NamedCommands.registerCommand("lancer", new Lancer(lanceur, accumulateur));
NamedCommands.registerCommand("Desaccumuler", new Desaccumuler(accumulateur));
autoChooser = AutoBuilder.buildAutoChooser(); autoChooser = AutoBuilder.buildAutoChooser();
dashboard.addCamera("limelight3G", "limelight3G","limelight.local:5800") dashboard.addCamera("limelight3G", "limelight3G","limelight.local:5800")
.withSize(3,4) .withSize(3,4)