|
2025-Robot
Robot code for 2025 FRC season by Argos, FRC team #1756
|
Robot code for 2025 FRC season
| Color | Pattern | Strips | Meaning | Trigger |
|---|---|---|---|---|
| Green | Solid | All | Reef AprilTag detected | N/A |
| Pattern | Controller | Meaning |
|---|---|---|
| Continuous 100% | Both | Swapping controllers activated. Swap occurs after vibration ends |
| 500 ms pulse | Driver | Aligned to reef for scoring coral |
When commissioning a new robot, you should set the instance type to either "Competition" or "Practice" by creating a text file using FTP readable by lvuser on the RoboRIO at path /home/lvuser/robotInstance. The content of this file should be just the text Competition or Practice with no whitespace preceding. If no valid instance is found at runtime, competition instance will be used and an error will be generated.
:memo: Note: Positive direction is rotating toward upward position
:memo: Note: Positive direction is rotating toward wheels left while arm is up. The battery is the front
:memo: Note: Positive direction is rotating inward toward elevator
See vision readme for information on which pipelines to use and which indices to install these pipelines on.
Go to http://10.17.56.2:5812 while connected to the robot to update firmware or change addresses.
This project uses pre-commit to check code formatting before accepting commits.
First install the prerequisites:
pip packages:
~/.bashrc by running vim ~/.bashrcPATH=$PATH:$LOCALAPPDATA/Programs/Python/Python39/Scripts/ (change Python39 to match your python version)$LOCALAPPDATA/Programs/Python/Python39/Scripts/ in the above example) depends on your Python installation. If y ou do the pip install steps first, pip will print the path you need to add.i and you should see INSERT at the bottom of the window to indicate you're editing in insert modeEsc then type :wq and press Entersource ~/.bashrc to update your sessionpip install wpiformatpip install clang-formatpip install pre-commitMake sure to run pip install <package> commands in an administrator terminal if installing in windows
Then initialize:
The first run may take a moment, but subsequent automatic runs are very fast.
You'll now have the linter run before each commit! For compatibility with Windows, we recommend the pip version of clang-format, but wpi-format will find any installed clang-format binary in the system path.
Driver Coral Mode:
| Button | Function |
|---|---|
| Left JS X | Drive |
| Left JS Y | Drive |
| Right JS X | Turn |
| Right JS Y | Unused |
| DPad Up | Unused |
| DPad Right | Unused |
| DPad Down | Unused |
| DPad Left | Unused |
| A | Outtake Coral |
| B | Align Right |
| X | Align Left |
| Y | Manual Place |
| LB | Left Intake |
| RB | Right Intake |
| LT | Left Place |
| RT | Right Place |
| Back | Field Home |
| Start | Unused |
| Left JS Button | Unused |
| Right JS Button | Unused |
Driver Algae Mode:
| Button | Function |
|---|---|
| Left JS X | Drive |
| Left JS Y | Drive |
| Right JS X | Turn |
| Right JS Y | Unused |
| DPad Up | Unused |
| DPad Right | Unused |
| DPad Down | Unused |
| DPad Left | Unused |
| A | Intake Algae |
| B | Align Right |
| X | Align Left |
| Y | Align Algae |
| LB | Hold - Left Intake, Release - Place |
| RB | Hold - Right Intake, Release - Place |
| LT | Left Place |
| RT | Right Place |
| Back | Field Home |
| Start | Unused |
| Left JS Button | Unused |
| Right JS Button | Unused |
Operator Coral Mode:
| Button | Function |
|---|---|
| Left JS X | Unused |
| Left JS Y | Elevator |
| Right JS X | Wrist |
| Right JS Y | Unused |
| DPad Up | Climber Arm Up Manual |
| DPad Right | Climber Winch Out |
| DPad Down | Climber Arm Down Manual |
| DPad Left | Unused |
| A | Preclimb |
| B | Climber Arm Down |
| X | Pressed - HP Pickup, Released - Floor Intake |
| Y | Climber Arm Up |
| LB | Climber Winch In |
| RB | Intake Coral |
| LT | Shoulder Left |
| RT | Shoulder Right |
| Back | Unused |
| Start | Unused |
| Left JS Button | Unused |
| Right JS Button | Unused |
Operator Algae Mode:
| Button | Function |
|---|---|
| Left JS X | Unused |
| Left JS Y | Elevator |
| Right JS X | Wrist |
| Right JS Y | Unused |
| DPad Up | Climber Arm Up Manual |
| DPad Right | Climber Winch Out |
| DPad Down | Climber Arm Down Manual |
| DPad Left | Unused |
| A | Preclimb |
| B | Climber Arm Down |
| X | Pressed - HP Pickup, Released - Floor Intake |
| Y | Climber Arm Up |
| LB | Climber Winch In |
| RB | Outtake Algae |
| LT | Shoulder Left |
| RT | Shoulder Right |
| Back | Unused |
| Start | Unused |
| Left JS Button | Unused |
| Right JS Button | Unused |
Button Box (Coral):
| Button | Function |
|---|---|
| 1 | Unused |
| 2 | Unused |
| 3 | Coral L4 |
| 4 | Unused |
| 5 | Unused |
| 6 | Coral L3 |
| 7 | Reef Left Position (Unused) |
| 8 | Reef Right Position (Unused) |
| 9 | Coral L2 |
| 10 | Coral/Algae Mode Toggle |
| 11 | Stow |
| 12 | Coral L1 |
Button Box (Algae):
| Button | Function |
|---|---|
| 1 | Unused |
| 2 | Unused |
| 3 | Algae Net |
| 4 | Unused |
| 5 | Unused |
| 6 | Algae L3 |
| 7 | Reef Left Position (Unused) |
| 8 | Reef Right Position (Unused) |
| 9 | Algae L2 |
| 10 | Coral/Algae Mode Toggle |
| 11 | Stow |
| 12 | Algae Processor |
We're using the following dependencies:
This software is licensed under the BSD 3-clause license. If you would like to use this software under the terms of a different license agreement, please contact us.