Skip to content

Commit 810c3c4

Browse files
authored
Merge branch 'main' into lights
2 parents eb0c5fc + 319bc73 commit 810c3c4

File tree

69 files changed

+5423
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+5423
-171
lines changed

.vscode/launch.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,24 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7-
7+
{
8+
"type": "java",
9+
"name": "Main",
10+
"request": "launch",
11+
"mainClass": "frc.robot.Main",
12+
"projectName": "reefscape"
13+
},
814
{
915
"type": "wpilib",
1016
"name": "WPILib Desktop Debug",
1117
"request": "launch",
12-
"desktop": true,
18+
"desktop": true
1319
},
1420
{
1521
"type": "wpilib",
1622
"name": "WPILib roboRIO Debug",
1723
"request": "launch",
18-
"desktop": false,
24+
"desktop": false
1925
}
2026
]
2127
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@
5757
"edu.wpi.first.math.**.proto.*",
5858
"edu.wpi.first.math.**.struct.*",
5959
],
60-
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable"
60+
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx4G -Xms100m -Xlog:disable"
6161
}

README.md

Lines changed: 103 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,55 +5,103 @@
55
## Controls
66

77
### Driver Controller
8-
8+
![flysky](docs/driver-controls.png)
99

1010
### Operator Controller
11+
![operator](docs/operator-controls.png)
12+
13+
## State Diagrams
14+
15+
### Robot State
16+
![robotState](docs/reefscape-RobotState-Light.png)
1117

1218

1319
## CAN Bus
1420

15-
| Subsystem | Type | Talon | ID | Comp PDP | Proto PDP | Motor | Breaker |
16-
| --------- | ---- | -------------- | --- | -------- | --------- | ------ | ------- |
17-
| Drive | FXS | azimuth | 0 | | | Minion | |
18-
| Drive | FXS | azimuth | 1 | | | Minion | |
19-
| Drive | FXS | azimuth | 2 | | | Minion | |
20-
| Drive | FXS | azimuth | 3 | | | Minion | |
21-
| Drive | FX | drive | 10 | | | kraken | |
22-
| Drive | FX | drive | 11 | | | kraken | |
23-
| Drive | FX | drive | 12 | | | kraken | |
24-
| Drive | FX | drive | 13 | | | kraken | |
25-
| Elevator | FX | elevatorMain | 20 | | | | |
26-
| Elevator | FX | elevatorFollow | 21 | | | | |
27-
| Biscuit | FX | biscuit | 25 | | | | |
28-
| Algae | FX | rollers | 30 | | | | |
29-
| Coral | FX | wheels | 35 | | | | |
21+
| Subsystem | Type | Talon | ID | CAN BUS | Comp PDP | Proto PDP | Motor | Breaker |
22+
| --------- | -------- | ------------------------- | --- | ------- | -------- | --------- | ------ | ------- |
23+
| Drive | FXS | azimuth | 0 | FD | | 16 | Minion | |
24+
| Drive | FXS | azimuth | 1 | FD | | 17 | Minion | |
25+
| Drive | FXS | azimuth | 2 | FD | | 6 | Minion | |
26+
| Drive | FXS | azimuth | 3 | FD | | 7 | Minion | |
27+
| Drive | FX | drive | 10 | FD | | 23 | kraken | |
28+
| Drive | FX | drive | 11 | FD | | 22 | kraken | |
29+
| Drive | FX | drive | 12 | FD | | 0 | kraken | |
30+
| Drive | FX | drive | 13 | FD | | 1 | kraken | |
31+
| Elevator | FX | elevatorMain | 20 | rio | | 21 | kraken | |
32+
| Elevator | FX | elevatorFollow | 21 | rio | | 20 | kraken | |
33+
| Biscuit | FXS | biscuit | 25 | rio | | 3 | Minion | |
34+
| Algae | FXS | algae | 30 | rio | | | Minion | |
35+
| Coral | FXS | coral | 35 | rio | | 2 | Minion | |
36+
| Funnel | FXS | rollers | 40 | rio | | | Minion | |
37+
| Climb | FX | frontMain | 45 | rio | | | Minion | |
38+
| Climb | FX | backFollow | 46 | rio | | | kraken | |
39+
| Climb | CANcoder | CANCoder | 47 | ri0 | | | n/a | |
40+
| - | - | rio | - | both | | 12 | | |
41+
| - | - | vrm (radio, pigeon) | - | - | | 13 | | |
42+
| - | - | custom circuit (pi power) | - | - | | | | |
43+
44+
## VRM
45+
| Device | Voltage | Current | ID |
46+
| --------------- | ------- | ------- | --- |
47+
| Pigeon 2 | 12 | 0.5 | 4 |
48+
| Ethernet Switch | 12 | 2 | |
49+
| | | | |
50+
51+
## Beam Breaks
52+
| Subsystem | Talon | ID | Fwd/Rev | Purpose |
53+
| --------- | ------- | --- | ------- | ------------------ |
54+
| Funnel | rollers | 40 | | Coral Presence |
55+
| Coral | wheels | 30 | | Coral partially in |
56+
| Coral | wheels | 30 | | Coral fully in |
3057

3158

3259
## Roborio
33-
| Subsystem | Interface | Device |
34-
| --------- | --------- | ------ |
35-
| | USB | |
60+
| Subsystem | Interface | Device |
61+
| --------- | --------- | -------- |
62+
| n/a | USB | CANivore |
3663

3764
## DIO
38-
| Subsystem | name | ID |
39-
| --------- | -------------- | --- |
40-
| | | 0 |
41-
| | | 1 |
42-
| | | 2 |
43-
| | | 3 |
44-
| | | 4 |
45-
| | | 5 |
46-
| | | 6 |
47-
| | | 7 |
48-
| | | 8 |
49-
| | | 9 |
65+
| Subsystem | name | ID |
66+
| ---------- | --------- | --- |
67+
| BattMon | Batt V | 0 |
68+
| BattMon | Batt I | 1 |
69+
| BattMon | PDP V | 2 |
70+
| BattMon | Breaker T | 3 |
71+
| AutoSwitch | switch | 4 |
72+
| AutoSwitch | switch | 5 |
73+
| AutoSwitch | switch | 6 |
74+
| AutoSwitch | switch | 7 |
75+
| AutoSwitch | switch | 8 |
76+
| AutoSwitch | switch | 9 |
77+
78+
## MXP
79+
| Subsystem | name | ID |
80+
| --------- | ----------- | --- |
81+
| TagServo | wallSense | 10 |
82+
| Climb | cageAligned | 11 |
83+
| | | 12 |
84+
| | | 13 |
85+
| | | 14 |
86+
| | | 15 |
87+
| | | 16 |
88+
| | | 17 |
89+
| | | 18 |
90+
| | | 19 |
91+
| | | 20 |
92+
| | | 21 |
93+
| | | 22 |
94+
| | | 23 |
95+
| | | 24 |
96+
| | | 25 |
97+
5098

5199
## PWM
52100
| Subsystem | name | ID |
53101
| --------- | ------------ | --- |
54-
| | | 0 |
55-
| | | 1 |
56-
| | | 2 |
102+
| LED | lights | 0 |
103+
| Climb | deployServo | 1 |
104+
| Climb | ratchetServo | 2 |
57105
| | | 3 |
58106
| | | 4 |
59107
| | | 5 |
@@ -62,8 +110,25 @@
62110
| | | 8 |
63111
| | | 9 |
64112

65-
## MXP
66-
| Subsystem | name | ID |
67-
| --------- | ------ | -- |
68-
| | | |
113+
## Analog
114+
| Subsystem | name | ID |
115+
| --------- | ------ | --- |
116+
| Elevator | height | 0 |
117+
| | | 1 |
118+
| | | 2 |
119+
| | | 3 |
120+
| | | 4 |
121+
| | | 5 |
122+
| | | 6 |
123+
| | | 7 |
124+
| | | 8 |
125+
| | | 9 |
69126

127+
## Cameras
128+
| Camera | IP Address | Type |
129+
| ----------- | ----------- | ------- |
130+
| Left Servo | 10.27.67.11 | USB 3.0 |
131+
| Right Servo | 10.27.67.12 | USB 3.0 |
132+
| Upper Left | 10.27.67.11 | USB 2.0 |
133+
| Upper Right | 10.27.67.12 | USB 2.0 |
134+
| Rear | 10.27.67.13 | USB 2.0 |

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id "java"
3-
id "edu.wpi.first.GradleRIO" version "2025.1.1"
3+
id "edu.wpi.first.GradleRIO" version "2025.2.1"
44
id "com.diffplug.spotless" version "6.12.1"
55
id "com.peterabeles.gversion" version "1.10"
66
}
@@ -81,7 +81,7 @@ dependencies {
8181

8282
implementation 'ch.qos.logback:logback-classic:1.3.5' //logging
8383
implementation("com.opencsv:opencsv:5.6")
84-
implementation 'org.strykeforce:wallEYE:24.2.0'
84+
implementation 'org.strykeforce:wallEYE:25.0.0'
8585
implementation 'net.jafama:jafama:2.3.2' //fastMath
8686
}
8787

docs/driver-controls.png

986 KB
Loading

docs/operator-controls.png

525 KB
Loading
276 KB
Loading

0 commit comments

Comments
 (0)