Skip to content

Commit

Permalink
Fix SwerveSubsystem location, add prelim PathPlanner
Browse files Browse the repository at this point in the history
Fixed issue where robot would not find required files for initializing the swerve systems.

Added preliminary PathPlanner paths and directories. No actual paths have been created, only basic paths.

Added loose simulator files, just keeping preferences consistent across computers.
  • Loading branch information
garrettsummerfi3ld committed Jan 24, 2024
1 parent cde0b2c commit 44fb9b0
Show file tree
Hide file tree
Showing 7 changed files with 141 additions and 13 deletions.
12 changes: 12 additions & 0 deletions .pathplanner/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"robotWidth": 0.9,
"robotLength": 0.9,
"holonomicMode": true,
"pathFolders": [],
"autoFolders": [],
"defaultMaxVel": 3.0,
"defaultMaxAccel": 3.0,
"defaultMaxAngVel": 540.0,
"defaultMaxAngAccel": 720.0,
"maxModuleSpeed": 4.5
}
1 change: 1 addition & 0 deletions networktables.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
92 changes: 92 additions & 0 deletions simgui-ds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"keyboardJoysticks": [
{
"axisConfig": [
{
"decKey": 65,
"incKey": 68
},
{
"decKey": 87,
"incKey": 83
},
{
"decKey": 69,
"decayRate": 0.0,
"incKey": 82,
"keyRate": 0.009999999776482582
}
],
"axisCount": 3,
"buttonCount": 4,
"buttonKeys": [
90,
88,
67,
86
],
"povConfig": [
{
"key0": 328,
"key135": 323,
"key180": 322,
"key225": 321,
"key270": 324,
"key315": 327,
"key45": 329,
"key90": 326
}
],
"povCount": 1
},
{
"axisConfig": [
{
"decKey": 74,
"incKey": 76
},
{
"decKey": 73,
"incKey": 75
}
],
"axisCount": 2,
"buttonCount": 4,
"buttonKeys": [
77,
44,
46,
47
],
"povCount": 0
},
{
"axisConfig": [
{
"decKey": 263,
"incKey": 262
},
{
"decKey": 265,
"incKey": 264
}
],
"axisCount": 2,
"buttonCount": 6,
"buttonKeys": [
260,
268,
266,
261,
269,
267
],
"povCount": 0
},
{
"axisCount": 0,
"buttonCount": 0,
"povCount": 0
}
]
}
5 changes: 5 additions & 0 deletions simgui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"NetworkTables Info": {
"visible": true
}
}
18 changes: 18 additions & 0 deletions src/main/deploy/pathplanner/autos/New Auto.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 1.8997260167441745,
"y": 1.9662317908328113
},
"rotation": 0
},
"command": {
"type": "sequential",
"data": {
"commands": []
}
},
"folder": null,
"choreoAuto": false
}
24 changes: 12 additions & 12 deletions src/main/deploy/pathplanner/paths/New Path.path
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,36 @@
},
"prevControl": null,
"nextControl": {
"x": 3.0,
"y": 6.5
"x": 2.358881331541719,
"y": 3.6266417329750302
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 5.0,
"y": 5.0
"x": 6.537040404928502,
"y": 7.124808942883288
},
"prevControl": {
"x": 4.0,
"y": 6.0
"x": 5.537040404928502,
"y": 8.124808942883288
},
"nextControl": {
"x": 6.0,
"y": 4.0
"x": 7.537040404928502,
"y": 6.124808942883288
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 7.225280307703473,
"y": 6.012192024384049
"x": 7.0,
"y": 1.0
},
"prevControl": {
"x": 6.975280307703473,
"y": 7.512192024384059
"x": 6.593738537566478,
"y": 2.514278555001763
},
"nextControl": null,
"isLocked": false,
Expand Down
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 @@ -33,7 +33,7 @@ public class RobotContainer {

// The robot's subsystems and commands are defined here...
private final SwerveSubsystem drivebase =
new SwerveSubsystem(new File(Filesystem.getDeployDirectory(), "swerve/neo"));
new SwerveSubsystem(new File(Filesystem.getDeployDirectory(), "swerve"));
// CommandJoystick rotationController = new CommandJoystick(1);
// Replace with CommandPS4Controller or CommandJoystick if needed
CommandJoystick driverController = new CommandJoystick(1);
Expand Down

0 comments on commit 44fb9b0

Please sign in to comment.