Skip to content

Commit

Permalink
Merge pull request #1 from FRC1257/test-bot
Browse files Browse the repository at this point in the history
add Test bot state
  • Loading branch information
AkeBoss-tech authored Jan 12, 2024
2 parents 1f91f86 + bc9cb3b commit 48b411d
Show file tree
Hide file tree
Showing 29 changed files with 666 additions and 3 deletions.
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.01
}
}
26 changes: 26 additions & 0 deletions src/main/deploy/swerve/MaxSwerve-Neo-NavX/modules/backleft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"drive": {
"type": "sparkmax",
"id": 42,
"canbus": null
},
"angle": {
"type": "sparkmax",
"id": 4,
"canbus": null
},
"encoder": {
"type": "attached",
"id": 0,
"canbus": null
},
"inverted": {
"drive": false,
"angle": true
},
"absoluteEncoderOffset": 301.3301969,
"location": {
"front": -12,
"left": 12
}
}
26 changes: 26 additions & 0 deletions src/main/deploy/swerve/MaxSwerve-Neo-NavX/modules/backright.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"drive": {
"type": "sparkmax",
"id": 22,
"canbus": null
},
"angle": {
"type": "sparkmax",
"id": 21,
"canbus": null
},
"encoder": {
"type": "attached",
"id": 0,
"canbus": null
},
"inverted": {
"drive": false,
"angle": true
},
"absoluteEncoderOffset": 7.6941204,
"location": {
"front": -12,
"left": -12
}
}
26 changes: 26 additions & 0 deletions src/main/deploy/swerve/MaxSwerve-Neo-NavX/modules/frontleft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"drive": {
"type": "sparkmax",
"id": 32,
"canbus": null
},
"angle": {
"type": "sparkmax",
"id": 31,
"canbus": null
},
"encoder": {
"type": "attached",
"id": 0,
"canbus": null
},
"inverted": {
"drive": false,
"angle": true
},
"absoluteEncoderOffset": 90,
"location": {
"front": 12,
"left": 12
}
}
26 changes: 26 additions & 0 deletions src/main/deploy/swerve/MaxSwerve-Neo-NavX/modules/frontright.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"drive": {
"type": "sparkmax",
"id": 12,
"canbus": null
},
"angle": {
"type": "sparkmax",
"id": 11,
"canbus": null
},
"encoder": {
"type": "attached",
"id": 0,
"canbus": null
},
"inverted": {
"drive": false,
"angle": true
},
"absoluteEncoderOffset": -90,
"location": {
"front": 12,
"left": -12
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"wheelDiameter": 3,
"gearRatio": {
"drive": 4.714285714285714,
"angle": 1
},
"currentLimit": {
"drive": 40,
"angle": 20
},
"rampRate": {
"drive": 0.25,
"angle": 0.25
},
"encoderPulsePerRotation": {
"drive": 1,
"angle": 1
},
"wheelGripCoefficientOfFriction": 1.19,
"angleMotorFreeSpeedRPM": 5676
}
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.01,
"i": 0,
"d": 0,
"f": 0,
"iz": 0
}
}
16 changes: 16 additions & 0 deletions src/main/deploy/swerve/MaxSwerve-Neo-NavX/swervedrive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"maxSpeed": 14.5,
"optimalVoltage": 12,
"imu": {
"type": "navx_spi",
"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/falcon/controllerproperties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"angleJoystickRadiusDeadband": 0.5,
"heading": {
"p": 0.118,
"i": 0,
"d": 0
}
}
26 changes: 26 additions & 0 deletions src/main/deploy/swerve/falcon/modules/backleft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"drive": {
"type": "talonfx",
"id": 4,
"canbus": null
},
"angle": {
"type": "talonfx",
"id": 2,
"canbus": null
},
"encoder": {
"type": "cancoder",
"id": 1,
"canbus": null
},
"inverted": {
"drive": false,
"angle": false
},
"absoluteEncoderOffset": -259.805,
"location": {
"front": -7,
"left": 7
}
}
26 changes: 26 additions & 0 deletions src/main/deploy/swerve/falcon/modules/backright.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"drive": {
"type": "talonfx",
"id": 3,
"canbus": null
},
"angle": {
"type": "talonfx",
"id": 53,
"canbus": null
},
"encoder": {
"type": "cancoder",
"id": 4,
"canbus": null
},
"inverted": {
"drive": false,
"angle": false
},
"absoluteEncoderOffset": -31.816,
"location": {
"front": -7,
"left": -7
}
}
26 changes: 26 additions & 0 deletions src/main/deploy/swerve/falcon/modules/frontleft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"drive": {
"type": "talonfx",
"id": 50,
"canbus": null
},
"angle": {
"type": "talonfx",
"id": 8,
"canbus": null
},
"encoder": {
"type": "cancoder",
"id": 3,
"canbus": null
},
"inverted": {
"drive": false,
"angle": false
},
"absoluteEncoderOffset": -139.043,
"location": {
"front": 7,
"left": 7
}
}
26 changes: 26 additions & 0 deletions src/main/deploy/swerve/falcon/modules/frontright.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"drive": {
"type": "talonfx",
"id": 51,
"canbus": null
},
"angle": {
"type": "talonfx",
"id": 52,
"canbus": null
},
"encoder": {
"type": "cancoder",
"id": 2,
"canbus": null
},
"inverted": {
"drive": false,
"angle": false
},
"absoluteEncoderOffset": -118.564,
"location": {
"front": 7,
"left": -7
}
}
20 changes: 20 additions & 0 deletions src/main/deploy/swerve/falcon/modules/physicalproperties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"wheelDiameter": 4,
"gearRatio": {
"drive": 8.14,
"angle": 12.8
},
"currentLimit": {
"drive": 40,
"angle": 20
},
"rampRate": {
"drive": 0.25,
"angle": 0.25
},
"encoderPulsePerRotation": {
"drive": 2048,
"angle": 2048
},
"wheelGripCoefficientOfFriction": 1.19
}
16 changes: 16 additions & 0 deletions src/main/deploy/swerve/falcon/modules/pidfproperties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"drive": {
"p": 0.15,
"i": 0,
"d": 2.0,
"f": 0,
"iz": 0
},
"angle": {
"p": 0.050953,
"i": 0,
"d": 0.118,
"f": 0,
"iz": 0
}
}
16 changes: 16 additions & 0 deletions src/main/deploy/swerve/falcon/swervedrive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"maxSpeed": 14.5,
"optimalVoltage": 12,
"imu": {
"type": "navx",
"id": 13,
"canbus": "canivore"
},
"invertedIMU": true,
"modules": [
"frontleft.json",
"frontright.json",
"backleft.json",
"backright.json"
]
}
8 changes: 8 additions & 0 deletions src/main/deploy/swerve/neo/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.01
}
}
26 changes: 26 additions & 0 deletions src/main/deploy/swerve/neo/modules/backleft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"drive": {
"type": "sparkmax",
"id": 7,
"canbus": null
},
"angle": {
"type": "sparkmax",
"id": 8,
"canbus": null
},
"encoder": {
"type": "cancoder",
"id": 12,
"canbus": null
},
"inverted": {
"drive": false,
"angle": false
},
"absoluteEncoderOffset": 6.504,
"location": {
"front": -12,
"left": 12
}
}
Loading

0 comments on commit 48b411d

Please sign in to comment.