Skip to content

Commit 9eb19db

Browse files
committed
Added code examples and working on fixing formatting.
1 parent d3c99cb commit 9eb19db

File tree

19 files changed

+896
-490
lines changed

19 files changed

+896
-490
lines changed

.github/copilot-instructions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ mcp_wpilib_fetch_frc_doc_page(url="https://docs.revrobotics.com/...")
4949
```
5050
**For Markdown or readthedocs:**
5151
https://docs.readthedocs.com/platform/stable/index.html
52+
https://squidfunk.github.io/mkdocs-material/reference/code-blocks/
53+
https://squidfunk.github.io/mkdocs-material/reference/
5254

5355
**For YAGSL:**
5456
https://docs.yagsl.com/

.vscode/mcp.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"type": "stdio",
55
"command": "uvx",
66
"args": [
7-
"first-agentic-csa==0.3.12",
8-
"--stdio"
7+
"first_agentic_csa==0.3.12"
98
],
109
"env": {}
1110
}
7.82 MB
Binary file not shown.
142 KB
Loading
184 KB
Loading
256 KB
Loading
Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
# This gitignore has been specially created by the WPILib team.
2+
# If you remove items from this file, intellisense might break.
3+
4+
### C++ ###
5+
# Prerequisites
6+
*.d
7+
8+
# Compiled Object files
9+
*.slo
10+
*.lo
11+
*.o
12+
*.obj
13+
14+
# Precompiled Headers
15+
*.gch
16+
*.pch
17+
18+
# Compiled Dynamic libraries
19+
*.so
20+
*.dylib
21+
*.dll
22+
23+
# Fortran module files
24+
*.mod
25+
*.smod
26+
27+
# Compiled Static libraries
28+
*.lai
29+
*.la
30+
*.a
31+
*.lib
32+
33+
# Executables
34+
*.exe
35+
*.out
36+
*.app
37+
38+
### Java ###
39+
# Compiled class file
40+
*.class
41+
42+
# Log file
43+
*.log
44+
45+
# BlueJ files
46+
*.ctxt
47+
48+
# Mobile Tools for Java (J2ME)
49+
.mtj.tmp/
50+
51+
# Package Files #
52+
*.jar
53+
*.war
54+
*.nar
55+
*.ear
56+
*.zip
57+
*.tar.gz
58+
*.rar
59+
60+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
61+
hs_err_pid*
62+
63+
### Linux ###
64+
*~
65+
66+
# temporary files which can be created if a process still has a handle open of a deleted file
67+
.fuse_hidden*
68+
69+
# KDE directory preferences
70+
.directory
71+
72+
# Linux trash folder which might appear on any partition or disk
73+
.Trash-*
74+
75+
# .nfs files are created when an open file is removed but is still being accessed
76+
.nfs*
77+
78+
### macOS ###
79+
# General
80+
.DS_Store
81+
.AppleDouble
82+
.LSOverride
83+
84+
# Icon must end with two \r
85+
Icon
86+
87+
# Thumbnails
88+
._*
89+
90+
# Files that might appear in the root of a volume
91+
.DocumentRevisions-V100
92+
.fseventsd
93+
.Spotlight-V100
94+
.TemporaryItems
95+
.Trashes
96+
.VolumeIcon.icns
97+
.com.apple.timemachine.donotpresent
98+
99+
# Directories potentially created on remote AFP share
100+
.AppleDB
101+
.AppleDesktop
102+
Network Trash Folder
103+
Temporary Items
104+
.apdisk
105+
106+
### VisualStudioCode ###
107+
.vscode/*
108+
!.vscode/settings.json
109+
!.vscode/tasks.json
110+
!.vscode/launch.json
111+
!.vscode/extensions.json
112+
113+
### Windows ###
114+
# Windows thumbnail cache files
115+
Thumbs.db
116+
ehthumbs.db
117+
ehthumbs_vista.db
118+
119+
# Dump file
120+
*.stackdump
121+
122+
# Folder config file
123+
[Dd]esktop.ini
124+
125+
# Recycle Bin used on file shares
126+
$RECYCLE.BIN/
127+
128+
# Windows Installer files
129+
*.cab
130+
*.msi
131+
*.msix
132+
*.msm
133+
*.msp
134+
135+
# Windows shortcuts
136+
*.lnk
137+
138+
### Gradle ###
139+
.gradle
140+
/build/
141+
142+
# Ignore Gradle GUI config
143+
gradle-app.setting
144+
145+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
146+
!gradle-wrapper.jar
147+
148+
# Cache of project
149+
.gradletasknamecache
150+
151+
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
152+
# gradle/wrapper/gradle-wrapper.properties
153+
154+
# # VS Code Specific Java Settings
155+
# DO NOT REMOVE .classpath and .project
156+
.classpath
157+
.project
158+
.settings/
159+
bin/
160+
161+
# IntelliJ
162+
*.iml
163+
*.ipr
164+
*.iws
165+
.idea/
166+
out/
167+
168+
# Fleet
169+
.fleet
170+
171+
# Simulation GUI and other tools window save file
172+
networktables.json
173+
simgui.json
174+
*-window.json
175+
176+
# Simulation data log directory
177+
logs/
178+
179+
# Folder that has CTRE Phoenix Sim device config storage
180+
ctre_sim/
181+
182+
# clangd
183+
/.cache
184+
compile_commands.json
185+
186+
# Eclipse generated file for annotation processors
187+
.factorypath
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// Copyright (c) FIRST and other WPILib contributors.
2+
// Open Source Software; you can modify and/or share it under the terms of
3+
// the WPILib BSD license file in the root directory of this project.
4+
5+
package frc.robot;
6+
7+
/**
8+
* The Constants class provides a convenient place for teams to hold robot-wide
9+
* numerical or boolean constants. This class should not be used for any other
10+
* purpose. All constants should be declared globally (i.e. public static). Do
11+
* not put anything functional in this class.
12+
*
13+
* <p>
14+
* It is advised to statically import this class (or one of its inner classes)
15+
* wherever the constants are needed, to reduce verbosity.
16+
*/
17+
public final class Constants {
18+
public static final class DriveConstants {
19+
// Motor controller IDs for drivetrain motors
20+
public static final int LEFT_LEADER_ID = 1;
21+
public static final int LEFT_FOLLOWER_ID = 2;
22+
public static final int RIGHT_LEADER_ID = 3;
23+
public static final int RIGHT_FOLLOWER_ID = 4;
24+
25+
// Current limit for drivetrain motors. 60A is a reasonable maximum to reduce
26+
// likelihood of tripping breakers or damaging CIM motors
27+
public static final int DRIVE_MOTOR_CURRENT_LIMIT = 60;
28+
}
29+
30+
public static final class FuelConstants {
31+
// Motor controller IDs for Fuel Mechanism motors
32+
public static final int FEEDER_MOTOR_ID = 6;
33+
public static final int INTAKE_LAUNCHER_MOTOR_ID = 5;
34+
35+
// Current limit and nominal voltage for fuel mechanism motors.
36+
public static final int FEEDER_MOTOR_CURRENT_LIMIT = 60;
37+
public static final int LAUNCHER_MOTOR_CURRENT_LIMIT = 60;
38+
39+
// Voltage values for various fuel operations. These values may need to be tuned
40+
// based on exact robot construction.
41+
// See the Software Guide for tuning information
42+
public static final double INTAKING_FEEDER_VOLTAGE = -12;
43+
public static final double INTAKING_INTAKE_VOLTAGE = 10;
44+
public static final double LAUNCHING_FEEDER_VOLTAGE = 9;
45+
public static final double LAUNCHING_LAUNCHER_VOLTAGE = 10.6;
46+
public static final double SPIN_UP_FEEDER_VOLTAGE = -6;
47+
public static final double SPIN_UP_SECONDS = 1;
48+
}
49+
50+
public static final class OperatorConstants {
51+
// Port constants for driver and operator controllers. These should match the
52+
// values in the Joystick tab of the Driver Station software
53+
public static final int DRIVER_CONTROLLER_PORT = 0;
54+
public static final int OPERATOR_CONTROLLER_PORT = 1;
55+
56+
// This value is multiplied by the joystick value when driving the robot to
57+
// help avoid driving and turning too fast and being difficult to control
58+
public static final double DRIVE_SCALING = .7;
59+
public static final double ROTATION_SCALING = .8;
60+
}
61+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright (c) FIRST and other WPILib contributors.
2+
// Open Source Software; you can modify and/or share it under the terms of
3+
// the WPILib BSD license file in the root directory of this project.
4+
5+
package frc.robot;
6+
7+
import edu.wpi.first.wpilibj.RobotBase;
8+
9+
/**
10+
* Do NOT add any static variables to this class, or any initialization at all. Unless you know what
11+
* you are doing, do not modify this file except to change the parameter class to the startRobot
12+
* call.
13+
*/
14+
public final class Main {
15+
private Main() {}
16+
17+
/**
18+
* Main initialization function. Do not perform any initialization here.
19+
*
20+
* <p>If you change your main robot class, change the parameter type.
21+
*/
22+
public static void main(String... args) {
23+
RobotBase.startRobot(Robot::new);
24+
}
25+
}

0 commit comments

Comments
 (0)