Commit 451b4cb 1 parent ba59675 commit 451b4cb Copy full SHA for 451b4cb
File tree 6 files changed +233
-4
lines changed
6 files changed +233
-4
lines changed Original file line number Diff line number Diff line change 260
260
]
261
261
}
262
262
},
263
+ {
264
+ "type": "named",
265
+ "data": {
266
+ "name": "shootMode"
267
+ }
268
+ },
269
+ {
270
+ "type": "wait",
271
+ "data": {
272
+ "waitTime": 0.4
273
+ }
274
+ },
275
+ {
276
+ "type": "named",
277
+ "data": {
278
+ "name": "disableAimAssist"
279
+ }
280
+ },
281
+ {
282
+ "type": "named",
283
+ "data": {
284
+ "name": "intakeMode"
285
+ }
286
+ },
287
+ {
288
+ "type": "parallel",
289
+ "data": {
290
+ "commands": [
291
+ {
292
+ "type": "path",
293
+ "data": {
294
+ "pathName": "speakerCenterToNote02"
295
+ }
296
+ },
297
+ {
298
+ "type": "sequential",
299
+ "data": {
300
+ "commands": [
301
+ {
302
+ "type": "wait",
303
+ "data": {
304
+ "waitTime": 1.1
305
+ }
306
+ },
307
+ {
308
+ "type": "named",
309
+ "data": {
310
+ "name": "enableAimAssist"
311
+ }
312
+ }
313
+ ]
314
+ }
315
+ }
316
+ ]
317
+ }
318
+ },
319
+ {
320
+ "type": "named",
321
+ "data": {
322
+ "name": "holdMode"
323
+ }
324
+ },
325
+ {
326
+ "type": "named",
327
+ "data": {
328
+ "name": "disableAimAssist"
329
+ }
330
+ },
331
+ {
332
+ "type": "parallel",
333
+ "data": {
334
+ "commands": [
335
+ {
336
+ "type": "path",
337
+ "data": {
338
+ "pathName": "note02ToSpeakerCenter"
339
+ }
340
+ },
341
+ {
342
+ "type": "sequential",
343
+ "data": {
344
+ "commands": [
345
+ {
346
+ "type": "wait",
347
+ "data": {
348
+ "waitTime": 0.4
349
+ }
350
+ },
351
+ {
352
+ "type": "named",
353
+ "data": {
354
+ "name": "readyToShootMode"
355
+ }
356
+ }
357
+ ]
358
+ }
359
+ }
360
+ ]
361
+ }
362
+ },
363
+ {
364
+ "type": "race",
365
+ "data": {
366
+ "commands": [
367
+ {
368
+ "type": "wait",
369
+ "data": {
370
+ "waitTime": 5.0
371
+ }
372
+ },
373
+ {
374
+ "type": "named",
375
+ "data": {
376
+ "name": "waitForArmError"
377
+ }
378
+ }
379
+ ]
380
+ }
381
+ },
263
382
{
264
383
"type": "named",
265
384
"data": {
Original file line number Diff line number Diff line change 12
12
"y": 5.564638673136996
13
13
},
14
14
"isLocked": false,
15
- "linkedName": "note0-1 "
15
+ "linkedName": "note01 "
16
16
},
17
17
{
18
18
"anchor": {
Original file line number Diff line number Diff line change
1
+ {
2
+ "version": 1.0,
3
+ "waypoints": [
4
+ {
5
+ "anchor": {
6
+ "x": 2.2579976738900847,
7
+ "y": 4.086511681795294
8
+ },
9
+ "prevControl": null,
10
+ "nextControl": {
11
+ "x": 1.8600695807886543,
12
+ "y": 4.086511681795294
13
+ },
14
+ "isLocked": false,
15
+ "linkedName": "note02"
16
+ },
17
+ {
18
+ "anchor": {
19
+ "x": 1.4871952550922645,
20
+ "y": 5.56
21
+ },
22
+ "prevControl": {
23
+ "x": 2.04037879281646,
24
+ "y": 5.56
25
+ },
26
+ "nextControl": null,
27
+ "isLocked": false,
28
+ "linkedName": "centerSpeaker"
29
+ }
30
+ ],
31
+ "rotationTargets": [],
32
+ "constraintZones": [],
33
+ "eventMarkers": [],
34
+ "globalConstraints": {
35
+ "maxVelocity": 4.0,
36
+ "maxAcceleration": 3.0,
37
+ "maxAngularVelocity": 540.0,
38
+ "maxAngularAcceleration": 720.0
39
+ },
40
+ "goalEndState": {
41
+ "velocity": 0,
42
+ "rotation": 180.0,
43
+ "rotateFast": false
44
+ },
45
+ "reversed": false,
46
+ "folder": "speaker",
47
+ "previewStartingState": {
48
+ "rotation": 180.0,
49
+ "velocity": 0
50
+ },
51
+ "useDefaultConstraints": true
52
+ }
Original file line number Diff line number Diff line change 25
25
},
26
26
"nextControl": null,
27
27
"isLocked": false,
28
- "linkedName": "note0-1 "
28
+ "linkedName": "note01 "
29
29
}
30
30
],
31
31
"rotationTargets": [],
Original file line number Diff line number Diff line change
1
+ {
2
+ "version": 1.0,
3
+ "waypoints": [
4
+ {
5
+ "anchor": {
6
+ "x": 1.4871952550922645,
7
+ "y": 5.56
8
+ },
9
+ "prevControl": null,
10
+ "nextControl": {
11
+ "x": 1.794769529379264,
12
+ "y": 5.56
13
+ },
14
+ "isLocked": false,
15
+ "linkedName": "centerSpeaker"
16
+ },
17
+ {
18
+ "anchor": {
19
+ "x": 2.2579976738900847,
20
+ "y": 4.086511681795294
21
+ },
22
+ "prevControl": {
23
+ "x": 1.1565714996633367,
24
+ "y": 4.115883046434244
25
+ },
26
+ "nextControl": null,
27
+ "isLocked": false,
28
+ "linkedName": "note02"
29
+ }
30
+ ],
31
+ "rotationTargets": [
32
+ {
33
+ "waypointRelativePos": 0.75,
34
+ "rotationDegrees": 170.05219982639534,
35
+ "rotateFast": false
36
+ }
37
+ ],
38
+ "constraintZones": [],
39
+ "eventMarkers": [],
40
+ "globalConstraints": {
41
+ "maxVelocity": 4.0,
42
+ "maxAcceleration": 3.0,
43
+ "maxAngularVelocity": 540.0,
44
+ "maxAngularAcceleration": 720.0
45
+ },
46
+ "goalEndState": {
47
+ "velocity": 0,
48
+ "rotation": 180.0,
49
+ "rotateFast": false
50
+ },
51
+ "reversed": false,
52
+ "folder": "speaker",
53
+ "previewStartingState": {
54
+ "rotation": 180.0,
55
+ "velocity": 0
56
+ },
57
+ "useDefaultConstraints": true
58
+ }
Original file line number Diff line number Diff line change @@ -154,8 +154,8 @@ private void configureBindings() {
154
154
private void createAutos (){
155
155
autoChooser .setDefaultOption ("no auto :'( " , null );
156
156
157
- autoChooser .addOption ("AS-3CENTERLINE " ,new PathPlannerAuto ("AS-3CENTERLINE " ));
158
- autoChooser .addOption ("C-4NOTE" ,new PathPlannerAuto ("C-4NOTE" ));
157
+ autoChooser .addOption ("CS-01-00-02 " ,new PathPlannerAuto ("CS-01-00-02 " ));
158
+ // autoChooser.addOption("C-4NOTE",new PathPlannerAuto("C-4NOTE"));
159
159
// autoChooser.addOption("four-amp",new PathPlannerAuto("four-amp"));
160
160
// autoChooser.addOption("two-amp-speaker",new PathPlannerAuto("two-amp-two-speaker"));
161
161
// autoChooser.addOption("test",Autos.testAuto());
You can’t perform that action at this time.
0 commit comments