Skip to content

Commit

Permalink
[#3] Auton
Browse files Browse the repository at this point in the history
  • Loading branch information
MattD8957 committed Oct 12, 2023
1 parent f7f0aaa commit 3a33978
Show file tree
Hide file tree
Showing 6 changed files with 321 additions and 1 deletion.
49 changes: 49 additions & 0 deletions src/main/deploy/pathplanner/1 Meter Back.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"waypoints": [
{
"anchorPoint": {
"x": 1.0,
"y": 0.0
},
"prevControl": null,
"nextControl": {
"x": 0.5916043164263165,
"y": 0.0021678448313849174
},
"holonomicAngle": 180.0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 0.0,
"y": 0.0021678448313849174
},
"prevControl": {
"x": 0.3656568901610685,
"y": -0.00500189811294985
},
"nextControl": null,
"holonomicAngle": 180.0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
}
],
"markers": []
}
49 changes: 49 additions & 0 deletions src/main/deploy/pathplanner/1 Meter Forward.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"waypoints": [
{
"anchorPoint": {
"x": 0.0,
"y": 0.0
},
"prevControl": null,
"nextControl": {
"x": 0.2775620409192522,
"y": 0.009860597990691108
},
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 1.0,
"y": 0.0
},
"prevControl": {
"x": 0.7328746018137007,
"y": -0.008347668693321042
},
"nextControl": null,
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
}
],
"markers": []
}
49 changes: 49 additions & 0 deletions src/main/deploy/pathplanner/1 Meter Left.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"waypoints": [
{
"anchorPoint": {
"x": 0.0,
"y": 0.0
},
"prevControl": null,
"nextControl": {
"x": -0.002694107864838407,
"y": 0.3909237100365249
},
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 0.0,
"y": 1.0
},
"prevControl": {
"x": 0.0,
"y": 0.5826395660970616
},
"nextControl": null,
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
}
],
"markers": []
}
49 changes: 49 additions & 0 deletions src/main/deploy/pathplanner/1 Meter Right.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"waypoints": [
{
"anchorPoint": {
"x": 0.0,
"y": 1.0
},
"prevControl": null,
"nextControl": {
"x": 0.0024204328009219474,
"y": 0.606079272072952
},
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 0.0,
"y": 0.0
},
"prevControl": {
"x": -0.011719895051773399,
"y": 0.36593465483649823
},
"nextControl": null,
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
}
],
"markers": []
}
124 changes: 124 additions & 0 deletions src/main/deploy/pathplanner/Square.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"waypoints": [
{
"anchorPoint": {
"x": 7.0,
"y": 3.0
},
"prevControl": null,
"nextControl": {
"x": 7.298242613603401,
"y": 2.9960899864792516
},
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 8.0,
"y": 3.0
},
"prevControl": {
"x": 7.9958055493857065,
"y": 3.0075254444374795
},
"nextControl": {
"x": 8.012957299358263,
"y": 2.9767527513500545
},
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 8.0,
"y": 4.0
},
"prevControl": {
"x": 8.05682871927923,
"y": 3.9336998275075636
},
"nextControl": {
"x": 7.931387252218158,
"y": 4.080048205745483
},
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 7.0,
"y": 4.0
},
"prevControl": {
"x": 7.046662538403307,
"y": 4.036716661170547
},
"nextControl": {
"x": 6.965938808627746,
"y": 3.9731987743171815
},
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 7.0,
"y": 3.0
},
"prevControl": {
"x": 6.989485248585105,
"y": 3.0647027342610955
},
"nextControl": null,
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
}
],
"markers": []
}
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ private void configureDefaultCommands() {
drivetrain.setDefaultCommand(new TeleopSwerve(drivetrain, () -> driver.getLeftY(), () -> driver.getLeftX(), () -> driver.getRightX(), () -> (driver.getRightTriggerAxis() > 0.75)));
}

public Command getAutonomousCommand() { return null;}
public Command getAutonomousCommand() { return autoFactory}
}

0 comments on commit 3a33978

Please sign in to comment.