Skip to content

Commit 2a782cc

Browse files
Merge pull request #19 from OakvilleDynamics/Encoders-and-other-last-minute-functions
2 parents d99fb41 + 705b184 commit 2a782cc

26 files changed

+438
-153
lines changed

CAN ID prefrences.txt

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
FRONT IS WHERE THE DOGHOUSE OPENS UP
3+
RIGHT IS WHERE THE ALGAE ARM IS
4+
5+
-- Swerve Motors --
6+
7+
- LF -
8+
9+
Turning: 1
10+
Driving: 2
11+
CAN Coder: 9
12+
13+
- LB -
14+
15+
Turning: 3
16+
Driving: 4
17+
CAN Coder: 10
18+
19+
- RF -
20+
21+
Turning: 5
22+
Driving: 6
23+
CAN Coder: 11
24+
25+
- RB -
26+
27+
Turning: 7
28+
Driving: 8
29+
CAN Coder: 12
30+
31+
-- Algae --
32+
33+
Intake Left: 13
34+
Intake Right: 14
35+
Hinge: 15
36+
37+
-- Fourbar --
38+
Bar Motor: 16
39+
Shooter: 17
40+
41+
-- CAM --
42+
Left: 18
43+
Right: 19
44+
Small: 21
45+
46+
-- Misc --
47+
PDH: 20

simgui-ds.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
{
2-
"System Joysticks": {
3-
"window": {
4-
"enabled": false
5-
}
6-
},
72
"keyboardJoysticks": [
83
{
94
"axisConfig": [
@@ -93,5 +88,10 @@
9388
"buttonCount": 0,
9489
"povCount": 0
9590
}
91+
],
92+
"robotJoysticks": [
93+
{
94+
"guid": "Keyboard0"
95+
}
9696
]
9797
}

simgui.json

+29-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,35 @@
11
{
22
"NTProvider": {
33
"types": {
4-
"/FMSInfo": "FMSInfo"
4+
"/FMSInfo": "FMSInfo",
5+
"/SmartDashboard/Alerts": "Alerts",
6+
"/SmartDashboard/Encoders": "Alerts",
7+
"/SmartDashboard/Field": "Field2d",
8+
"/SmartDashboard/IMU": "Alerts",
9+
"/SmartDashboard/JSON": "Alerts",
10+
"/SmartDashboard/Motors": "Alerts",
11+
"/SmartDashboard/Swerve Drive": "Alerts"
12+
},
13+
"windows": {
14+
"/SmartDashboard/Field": {
15+
"bottom": 1638,
16+
"builtin": "2025 Reefscape",
17+
"height": 8.051901817321777,
18+
"left": 534,
19+
"right": 3466,
20+
"top": 291,
21+
"width": 17.54825210571289,
22+
"window": {
23+
"visible": true
24+
}
25+
}
26+
}
27+
},
28+
"NetworkTables": {
29+
"transitory": {
30+
"SmartDashboard": {
31+
"open": true
32+
}
533
}
634
},
735
"NetworkTables Info": {

src/main/deploy/pathplanner/autos/L2 Coral.auto

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"type": "path",
99
"data": {
10-
"pathName": "Blue Straight Coral"
10+
"pathName": "Straight"
1111
}
1212
},
1313
{

src/main/deploy/pathplanner/paths/Blue Straight Coral.path

-54
This file was deleted.

src/main/deploy/pathplanner/paths/Straight.path

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
"waypoints": [
44
{
55
"anchor": {
6-
"x": 7.55846590909091,
7-
"y": 6.0
6+
"x": 7.588380681818182,
7+
"y": 4.179559659088715
88
},
99
"prevControl": null,
1010
"nextControl": {
11-
"x": 8.558465909090906,
12-
"y": 6.0
11+
"x": 6.042784090909091,
12+
"y": 4.1695880681818185
1313
},
1414
"isLocked": false,
1515
"linkedName": null
1616
},
1717
{
1818
"anchor": {
19-
"x": 5.992926136363637,
20-
"y": 6.0
19+
"x": 6.032812500005129,
20+
"y": 4.179559659088715
2121
},
2222
"prevControl": {
23-
"x": 4.992926136363637,
24-
"y": 6.0
23+
"x": 7.5684375,
24+
"y": 4.149644886363635
2525
},
2626
"nextControl": null,
2727
"isLocked": false,
@@ -42,13 +42,13 @@
4242
},
4343
"goalEndState": {
4444
"velocity": 0,
45-
"rotation": 0.0
45+
"rotation": -178.66778014546446
4646
},
4747
"reversed": false,
4848
"folder": null,
4949
"idealStartingState": {
5050
"velocity": 0,
51-
"rotation": -179.43442050750002
51+
"rotation": 178.97696981131392
5252
},
5353
"useDefaultConstraints": true
5454
}
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"robotWidth": 0.9,
3+
"robotLength": 0.9,
4+
"holonomicMode": true,
5+
"pathFolders": [],
6+
"autoFolders": [],
7+
"defaultMaxVel": 3.0,
8+
"defaultMaxAccel": 3.0,
9+
"defaultMaxAngVel": 540.0,
10+
"defaultMaxAngAccel": 720.0,
11+
"defaultNominalVoltage": 12.0,
12+
"robotMass": 74.088,
13+
"robotMOI": 6.883,
14+
"robotTrackwidth": 0.546,
15+
"driveWheelRadius": 0.048,
16+
"driveGearing": 5.143,
17+
"maxDriveSpeed": 5.45,
18+
"driveMotorType": "vortex",
19+
"driveCurrentLimit": 60.0,
20+
"wheelCOF": 1.2,
21+
"flModuleX": 0.273,
22+
"flModuleY": 0.273,
23+
"frModuleX": 0.273,
24+
"frModuleY": -0.273,
25+
"blModuleX": -0.273,
26+
"blModuleY": 0.273,
27+
"brModuleX": -0.273,
28+
"brModuleY": -0.273,
29+
"bumperOffsetX": 0.0,
30+
"bumperOffsetY": 0.0,
31+
"robotFeatures": [
32+
"{\"name\":\"Rectangle\",\"type\":\"rounded_rect\",\"data\":{\"center\":{\"x\":0.15,\"y\":0.0},\"size\":{\"width\":0.3,\"length\":0.6},\"borderRadius\":0.05,\"strokeWidth\":0.02,\"filled\":false}}"
33+
]
34+
}

src/main/deploy/swerve/controllerproperties.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"angleJoystickRadiusDeadband": 0.5,
2+
"angleJoystickRadiusDeadband": 0.1,
33
"heading": {
44
"p": 0.4,
55
"i": 0,

src/main/deploy/swerve/modules/backleft.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
22
"drive": {
33
"type": "sparkflex_vortex",
4-
"id": 7,
4+
"id": 4,
55
"canbus": null
66
},
77
"angle": {
88
"type": "sparkflex_vortex",
9-
"id": 8,
9+
"id": 3,
1010
"canbus": null
1111
},
1212
"encoder": {
1313
"type": "cancoder",
14-
"id": 12,
14+
"id": 10,
1515
"canbus": null
1616
},
1717
"inverted": {
18-
"drive": false,
19-
"angle": false
18+
"drive": true,
19+
"angle": true
2020
},
21-
"absoluteEncoderOffset": 6.504,
21+
"absoluteEncoderOffset": 36.914,
2222
"location": {
2323
"front": -12,
2424
"left": 12

src/main/deploy/swerve/modules/backright.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
22
"drive": {
33
"type": "sparkflex_vortex",
4-
"id": 5,
4+
"id": 8,
55
"canbus": null
66
},
77
"angle": {
88
"type": "sparkflex_vortex",
9-
"id": 6,
9+
"id": 7,
1010
"canbus": null
1111
},
1212
"encoder": {
1313
"type": "cancoder",
14-
"id": 11,
14+
"id": 12,
1515
"canbus": null
1616
},
1717
"inverted": {
18-
"drive": false,
19-
"angle": false
18+
"drive": true,
19+
"angle": true
2020
},
21-
"absoluteEncoderOffset": -18.281,
21+
"absoluteEncoderOffset": 86.748,
2222
"location": {
2323
"front": -12,
2424
"left": -12

src/main/deploy/swerve/modules/frontleft.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"drive": {
33
"type": "sparkflex_vortex",
4-
"id": 4,
4+
"id": 2,
55
"canbus": null
66
},
77
"angle": {
88
"type": "sparkflex_vortex",
9-
"id": 3,
9+
"id": 1,
1010
"canbus": null
1111
},
1212
"encoder": {
@@ -15,10 +15,10 @@
1515
"canbus": null
1616
},
1717
"inverted": {
18-
"drive": false,
19-
"angle": false
18+
"drive": true,
19+
"angle": true
2020
},
21-
"absoluteEncoderOffset": -114.609,
21+
"absoluteEncoderOffset": 217.265,
2222
"location": {
2323
"front": 12,
2424
"left": 12

src/main/deploy/swerve/modules/frontright.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
22
"drive": {
33
"type": "sparkflex_vortex",
4-
"id": 2,
4+
"id": 6,
55
"canbus": null
66
},
77
"angle": {
88
"type": "sparkflex_vortex",
9-
"id": 1,
9+
"id": 5,
1010
"canbus": null
1111
},
1212
"encoder": {
1313
"type": "cancoder",
14-
"id": 10,
14+
"id": 11,
1515
"canbus": null
1616
},
1717
"inverted": {
18-
"drive": false,
19-
"angle": false
18+
"drive": true,
19+
"angle": true
2020
},
21-
"absoluteEncoderOffset": -50.977,
21+
"absoluteEncoderOffset": 0.000,
2222
"location": {
2323
"front": 12,
2424
"left": -12

0 commit comments

Comments
 (0)