Skip to content

Commit

Permalink
get a start to drivebase subsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
DriverStation3 committed Jan 5, 2024
1 parent 8e9f80e commit c615ec4
Show file tree
Hide file tree
Showing 22 changed files with 954 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/main/deploy/practiceswerve/controllerproperties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"angleJoystickRadiusDeadband": 0.5,
"heading": {
"p": 0.4,
"i": 0,
"d": 0
}
}
30 changes: 30 additions & 0 deletions src/main/deploy/practiceswerve/modules/backleft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"location": {
"front": -8.5,
"left": 8.5
},
"absoluteEncoderOffset": 206.191,
"drive": {
"type": "falcon",
"id": 7,
"canbus": null
},
"angle": {
"type": "falcon",
"id": 8,
"canbus": null
},
"conversionFactor": {
"angle": 0.01373291,
"drive": 0.000019146492
},
"encoder": {
"type": "cancoder",
"id": 9,
"canbus": null
},
"inverted": {
"drive": false,
"angle": false
}
}
30 changes: 30 additions & 0 deletions src/main/deploy/practiceswerve/modules/backright.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"location": {
"front": -8.5,
"left": -8.5
},
"absoluteEncoderOffset": 309.99,
"drive": {
"type": "falcon",
"id": 10,
"canbus": null
},
"angle": {
"type": "falcon",
"id": 11,
"canbus": null
},
"conversionFactor": {
"angle": 0.01373291,
"drive": 0.000019146492
},
"encoder": {
"type": "cancoder",
"id": 12,
"canbus": null
},
"inverted": {
"drive": false,
"angle": false
}
}
30 changes: 30 additions & 0 deletions src/main/deploy/practiceswerve/modules/frontleft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"location": {
"front": 8.5,
"left": 8.5
},
"absoluteEncoderOffset": 524.971,
"drive": {
"type": "falcon",
"id": 1,
"canbus": null
},
"angle": {
"type": "falcon",
"id": 2,
"canbus": null
},
"conversionFactor": {
"angle": 0.01373291,
"drive": 0.000019146492
},
"encoder": {
"type": "cancoder",
"id": 3,
"canbus": null
},
"inverted": {
"drive": false,
"angle": false
}
}
30 changes: 30 additions & 0 deletions src/main/deploy/practiceswerve/modules/frontright.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"location": {
"front": 8.5,
"left": -8.5
},
"absoluteEncoderOffset": 249.346,
"drive": {
"type": "falcon",
"id": 4,
"canbus": null
},
"angle": {
"type": "falcon",
"id": 5,
"canbus": null
},
"conversionFactor": {
"angle": 0.01373291,
"drive": 0.000019146492
},
"encoder": {
"type": "cancoder",
"id": 6,
"canbus": null
},
"inverted": {
"drive": false,
"angle": false
}
}
16 changes: 16 additions & 0 deletions src/main/deploy/practiceswerve/modules/physicalproperties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"optimalVoltage": 12,
"wheelGripCoefficientOfFriction": 1.19,
"currentLimit": {
"drive": 40,
"angle": 20
},
"conversionFactor": {
"angle": 0.01373291,
"drive": 0.000019146492
},
"rampRate": {
"drive": 0.25,
"angle": 0.25
}
}
16 changes: 16 additions & 0 deletions src/main/deploy/practiceswerve/modules/pidfproperties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"drive": {
"p": 0.0020645,
"i": 0,
"d": 0,
"f": 0,
"iz": 0
},
"angle": {
"p": 0.0020645,
"i": 0,
"d": 0,
"f": 0,
"iz": 0
}
}
14 changes: 14 additions & 0 deletions src/main/deploy/practiceswerve/swervedrive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"imu": {
"type": "navx_mxp",
"id": 0,
"canbus": null
},
"invertedIMU": true,
"modules": [
"frontleft.json",
"frontright.json",
"backleft.json",
"backright.json"
]
}
8 changes: 8 additions & 0 deletions src/main/deploy/swerve/controllerproperties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"angleJoystickRadiusDeadband": 0.5,
"heading": {
"p": 0.4,
"i": 0,
"d": 0
}
}
30 changes: 30 additions & 0 deletions src/main/deploy/swerve/modules/backleft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"location": {
"front": -8.5,
"left": 8.5
},
"absoluteEncoderOffset": 206.191,
"drive": {
"type": "falcon",
"id": 7,
"canbus": null
},
"angle": {
"type": "falcon",
"id": 8,
"canbus": null
},
"conversionFactor": {
"angle": 0.01373291,
"drive": 0.000019146492
},
"encoder": {
"type": "cancoder",
"id": 9,
"canbus": null
},
"inverted": {
"drive": false,
"angle": false
}
}
30 changes: 30 additions & 0 deletions src/main/deploy/swerve/modules/backright.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"location": {
"front": -8.5,
"left": -8.5
},
"absoluteEncoderOffset": 309.99,
"drive": {
"type": "falcon",
"id": 10,
"canbus": null
},
"angle": {
"type": "falcon",
"id": 11,
"canbus": null
},
"conversionFactor": {
"angle": 0.01373291,
"drive": 0.000019146492
},
"encoder": {
"type": "cancoder",
"id": 12,
"canbus": null
},
"inverted": {
"drive": false,
"angle": false
}
}
30 changes: 30 additions & 0 deletions src/main/deploy/swerve/modules/frontleft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"location": {
"front": 8.5,
"left": 8.5
},
"absoluteEncoderOffset": 524.971,
"drive": {
"type": "falcon",
"id": 1,
"canbus": null
},
"angle": {
"type": "falcon",
"id": 2,
"canbus": null
},
"conversionFactor": {
"angle": 0.01373291,
"drive": 0.000019146492
},
"encoder": {
"type": "cancoder",
"id": 3,
"canbus": null
},
"inverted": {
"drive": false,
"angle": false
}
}
30 changes: 30 additions & 0 deletions src/main/deploy/swerve/modules/frontright.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"location": {
"front": 8.5,
"left": -8.5
},
"absoluteEncoderOffset": 249.346,
"drive": {
"type": "falcon",
"id": 4,
"canbus": null
},
"angle": {
"type": "falcon",
"id": 5,
"canbus": null
},
"conversionFactor": {
"angle": 0.01373291,
"drive": 0.000019146492
},
"encoder": {
"type": "cancoder",
"id": 6,
"canbus": null
},
"inverted": {
"drive": false,
"angle": false
}
}
16 changes: 16 additions & 0 deletions src/main/deploy/swerve/modules/physicalproperties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"optimalVoltage": 12,
"wheelGripCoefficientOfFriction": 1.19,
"currentLimit": {
"drive": 40,
"angle": 20
},
"conversionFactor": {
"angle": 0.01373291,
"drive": 0.000019146492
},
"rampRate": {
"drive": 0.25,
"angle": 0.25
}
}
16 changes: 16 additions & 0 deletions src/main/deploy/swerve/modules/pidfproperties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"drive": {
"p": 0.0020645,
"i": 0,
"d": 0,
"f": 0,
"iz": 0
},
"angle": {
"p": 0.0020645,
"i": 0,
"d": 0,
"f": 0,
"iz": 0
}
}
14 changes: 14 additions & 0 deletions src/main/deploy/swerve/swervedrive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"imu": {
"type": "navx_mxp",
"id": 0,
"canbus": null
},
"invertedIMU": true,
"modules": [
"frontleft.json",
"frontright.json",
"backleft.json",
"backright.json"
]
}
Loading

0 comments on commit c615ec4

Please sign in to comment.