"y": 4.944151838666582
},
"prevControl": {
- "x": 0.32971530249110376,
+ "x": 0.3297153024911038,
"y": 4.83655990510083
},
"nextControl": {
"y": 6.041589561086512
},
"prevControl": {
- "x": 2.509641474721047,
- "y": 5.48937238568611
+ "x": 2.6660894988160155,
+ "y": 5.549623259497286
},
"nextControl": {
- "x": 3.041032028469752,
- "y": 6.827010676156583
+ "x": 2.847366548042706,
+ "y": 6.9668801897983395
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
- "x": 4.5,
- "y": 7.623
+ "x": 4.579596678529064,
+ "y": 7.590913404507711
},
"prevControl": {
- "x": 3.428383113987069,
- "y": 7.720021902743396
+ "x": 3.545234957349378,
+ "y": 7.474544158360471
},
"nextControl": null,
"isLocked": false,
}
],
"constraintZones": [
- {
- "name": "After Depot",
- "minWaypointRelativePos": 1.5082690187431023,
- "maxWaypointRelativePos": 2.2403528114663795,
- "constraints": {
- "maxVelocity": 1.0,
- "maxAcceleration": 1.5,
- "maxAngularVelocity": 200.0,
- "maxAngularAcceleration": 300.0,
- "nominalVoltage": 12.0,
- "unlimited": false
- }
- },
{
"name": "Constraints Zone",
- "minWaypointRelativePos": 3.5,
- "maxWaypointRelativePos": 3.995589856670343,
+ "minWaypointRelativePos": 0.0,
+ "maxWaypointRelativePos": 4.5,
"constraints": {
"maxVelocity": 1.0,
- "maxAcceleration": 1.5,
+ "maxAcceleration": 1.0,
"maxAngularVelocity": 200.0,
"maxAngularAcceleration": 300.0,
"nominalVoltage": 12.0,
],
"pointTowardsZones": [],
"eventMarkers": [
- {
- "name": "Hood Down",
- "waypointRelativePos": 0,
- "endWaypointRelativePos": null,
- "command": null
- },
- {
- "name": "Stop Spindexer",
- "waypointRelativePos": 0.0,
- "endWaypointRelativePos": null,
- "command": null
- },
{
"name": "Spin Intake Rollers",
- "waypointRelativePos": 0.899669239250276,
+ "waypointRelativePos": 0,
"endWaypointRelativePos": null,
- "command": null
+ "command": {
+ "type": "named",
+ "data": {
+ "name": "Spin Intake Rollers"
+ }
+ }
},
{
"name": "Extend Intake",
- "waypointRelativePos": 0.9,
+ "waypointRelativePos": 0,
"endWaypointRelativePos": null,
- "command": null
+ "command": {
+ "type": "named",
+ "data": {
+ "name": "Extend Intake"
+ }
+ }
},
{
- "name": "Start Spindexer",
- "waypointRelativePos": 4.0,
+ "name": "Stop Hood Down",
+ "waypointRelativePos": 0,
"endWaypointRelativePos": null,
- "command": null
+ "command": {
+ "type": "named",
+ "data": {
+ "name": "Stop Hood Down"
+ }
+ }
},
{
- "name": "Stop Hood Down",
- "waypointRelativePos": 4.0,
+ "name": "Stop Spindexer",
+ "waypointRelativePos": 0,
"endWaypointRelativePos": null,
- "command": null
+ "command": {
+ "type": "named",
+ "data": {
+ "name": "Stop Spindexer"
+ }
+ }
},
{
- "name": "Start Intake Seizure",
- "waypointRelativePos": 4.0,
+ "name": "Start Spindexer",
+ "waypointRelativePos": 0,
"endWaypointRelativePos": null,
"command": null
}
"folder": null,
"idealStartingState": {
"velocity": 0,
- "rotation": 0.0
+ "rotation": 180.0
},
"useDefaultConstraints": true
}
\ No newline at end of file
"prevControl": null,
"nextControl": {
"x": 2.492313167259787,
- "y": 6.891565836298932
+ "y": 6.568790035587188
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
- "x": 0.7062870699861263,
- "y": 4.944151838666582
+ "x": 0.8461565836298937,
+ "y": 4.997947805456701
},
"prevControl": {
- "x": 0.23241295545659613,
- "y": 4.787437564570203
+ "x": 0.3722824691003634,
+ "y": 4.841233531360322
},
"nextControl": {
- "x": 2.0727046263325084,
- "y": 5.396037959663023
+ "x": 2.212574139976275,
+ "y": 5.449833926453142
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
- "x": 2.7290154211130537,
- "y": 6.041589561086512
+ "x": 2.5138315539739033,
+ "y": 6.030830367734283
},
"prevControl": {
- "x": 2.4159215599025865,
- "y": 5.447156064644024
+ "x": 2.3524436536180313,
+ "y": 5.471352313167261
},
"nextControl": {
- "x": 3.042109282323521,
- "y": 6.636023057528999
+ "x": 2.7881778575014478,
+ "y": 6.981897553296436
},
"isLocked": false,
"linkedName": null
"y": 7.623
},
"prevControl": {
- "x": 3.428383113987069,
- "y": 7.720021902743396
+ "x": 3.5036773428232504,
+ "y": 7.354211150652431
},
"nextControl": null,
"isLocked": false,
}
],
"constraintZones": [
- {
- "name": "After Depot",
- "minWaypointRelativePos": 1.5082690187431023,
- "maxWaypointRelativePos": 2.2403528114663795,
- "constraints": {
- "maxVelocity": 1.0,
- "maxAcceleration": 1.5,
- "maxAngularVelocity": 200.0,
- "maxAngularAcceleration": 300.0,
- "nominalVoltage": 12.0,
- "unlimited": false
- }
- },
{
"name": "Constraints Zone",
- "minWaypointRelativePos": 3.5,
- "maxWaypointRelativePos": 3.995589856670343,
+ "minWaypointRelativePos": 0.4769403824521941,
+ "maxWaypointRelativePos": 3.1136107986502153,
"constraints": {
"maxVelocity": 1.0,
- "maxAcceleration": 1.5,
+ "maxAcceleration": 1.0,
"maxAngularVelocity": 200.0,
"maxAngularAcceleration": 300.0,
"nominalVoltage": 12.0,
"folder": null,
"idealStartingState": {
"velocity": 0,
- "rotation": 0.0
+ "rotation": 180.0
},
"useDefaultConstraints": true
}
\ No newline at end of file
String leftDoNothing = "Left Do Nothing";
String rightDoNothing = "Right Do Nothing";
String centerDoNothing = "Center Do Nothing";
+ String leftShallowDoubleSwipe = "LeftShallowDoubleSwipe";
+ String rightShallowDoubleSwipe = "RightShallowDoubleSwipe";
+ String leftBumpDepotCenter = "LeftBumpDepotCenter";
+ String leftTrenchDepotCenter = "LeftTrenchDepotCenter";
+ String depotCenterPath = "DepotCenterPath";
autoChooser.setDefaultOption("Default", getDefaultAuto());
addAuto(leftSideAuto);
addAuto(leftDoNothing);
addAuto(rightDoNothing);
addAuto(centerDoNothing);
- addAuto("LeftShallowDoubleSwipe");
- addAuto("RightShallowDoubleSwipe");
+ addAuto(leftShallowDoubleSwipe);
+ addAuto(rightShallowDoubleSwipe);
+ addAuto(leftBumpDepotCenter);
+ addAuto(leftTrenchDepotCenter);
+ addAuto(depotCenterPath);
DynamicAutoBuilder dynamicAutoBuilder = new DynamicAutoBuilder(spindexer, turret, hood, intake);