This commit is contained in:
parent
6490a61378
commit
db3c800ae1
@ -88,5 +88,14 @@
|
|||||||
"buttonCount": 0,
|
"buttonCount": 0,
|
||||||
"povCount": 0
|
"povCount": 0
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"robotJoysticks": [
|
||||||
|
{
|
||||||
|
"guid": "030000006d04000015c2000000000000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"guid": "78696e70757401000000000000000000",
|
||||||
|
"useGamepad": true
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
53
simgui.json
53
simgui.json
@ -1,12 +1,61 @@
|
|||||||
{
|
{
|
||||||
|
"HALProvider": {
|
||||||
|
"DIO": {
|
||||||
|
"window": {
|
||||||
|
"visible": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"NTProvider": {
|
"NTProvider": {
|
||||||
"types": {
|
"types": {
|
||||||
"/FMSInfo": "FMSInfo",
|
"/FMSInfo": "FMSInfo",
|
||||||
|
"/Shuffleboard/dashboard/autochooser": "String Chooser",
|
||||||
"/SmartDashboard/Field": "Field2d",
|
"/SmartDashboard/Field": "Field2d",
|
||||||
"/SmartDashboard/Pigeon IMU [0]": "Gyro"
|
"/SmartDashboard/Pigeon IMU [0]": "Gyro"
|
||||||
|
},
|
||||||
|
"windows": {
|
||||||
|
"/SmartDashboard/Field": {
|
||||||
|
"bottom": 1476,
|
||||||
|
"height": 8.210550308227539,
|
||||||
|
"left": 150,
|
||||||
|
"right": 2961,
|
||||||
|
"top": 79,
|
||||||
|
"width": 16.541748046875,
|
||||||
|
"window": {
|
||||||
|
"visible": true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"NetworkTables Info": {
|
"NetworkTables": {
|
||||||
"visible": true
|
"transitory": {
|
||||||
|
"SmartDashboard": {
|
||||||
|
"Field": {
|
||||||
|
"open": true
|
||||||
|
},
|
||||||
|
"open": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"NetworkTables View": {
|
||||||
|
"visible": false
|
||||||
|
},
|
||||||
|
"Plot": {
|
||||||
|
"Plot <0>": {
|
||||||
|
"plots": [
|
||||||
|
{
|
||||||
|
"backgroundColor": [
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
0.8500000238418579
|
||||||
|
],
|
||||||
|
"height": 332
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"window": {
|
||||||
|
"visible": false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,6 @@ public class RobotContainer {
|
|||||||
CommandXboxController manette = new CommandXboxController(1);
|
CommandXboxController manette = new CommandXboxController(1);
|
||||||
//command
|
//command
|
||||||
PistonFerme pistonFerme = new PistonFerme(grimpeur);
|
PistonFerme pistonFerme = new PistonFerme(grimpeur);
|
||||||
Limelight_tracker limelight_tracker = new Limelight_tracker(limelight,drive);
|
|
||||||
Balayer balayer = new Balayer(balayeuse, accumulateur);
|
Balayer balayer = new Balayer(balayeuse, accumulateur);
|
||||||
GuiderHaut guiderHaut = new GuiderHaut(guideur);
|
GuiderHaut guiderHaut = new GuiderHaut(guideur);
|
||||||
Lancer lancer = new Lancer(lanceur,limelight);
|
Lancer lancer = new Lancer(lanceur,limelight);
|
||||||
@ -86,8 +85,8 @@ public class RobotContainer {
|
|||||||
manette.b().whileTrue(new GuiderHaut(guideur));
|
manette.b().whileTrue(new GuiderHaut(guideur));
|
||||||
joystick.button(3).toggleOnTrue(new Balayer(balayeuse, accumulateur));
|
joystick.button(3).toggleOnTrue(new Balayer(balayeuse, accumulateur));
|
||||||
joystick.button(1).whileTrue(new LancerNote(lanceur, accumulateur));
|
joystick.button(1).whileTrue(new LancerNote(lanceur, accumulateur));
|
||||||
joystick.button(4).whileTrue(new ParallelCommandGroup(lancer,limelight_tracker));
|
joystick.button(4).whileTrue(new ParallelCommandGroup(new Lancer(lanceur,limelight),new Limelight_tracker(limelight,drive)));
|
||||||
joystick.button(2).whileTrue(new ParallelCommandGroup(lancerampli,limelight_tracker,guiderHaut));
|
joystick.button(2).whileTrue(new ParallelCommandGroup(new Lancerampli(lanceur,limelight),new Limelight_tracker(limelight,drive),new GuiderHaut(guideur)));
|
||||||
configureBindings();
|
configureBindings();
|
||||||
drive.setDefaultCommand(new RunCommand(()->{
|
drive.setDefaultCommand(new RunCommand(()->{
|
||||||
drive.drive(-MathUtil.applyDeadband(joystick.getY(),0.2), MathUtil.applyDeadband(-joystick.getX(),0.2), MathUtil.applyDeadband(-joystick.getZ(), 0.2));
|
drive.drive(-MathUtil.applyDeadband(joystick.getY(),0.2), MathUtil.applyDeadband(-joystick.getX(),0.2), MathUtil.applyDeadband(-joystick.getZ(), 0.2));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user