An open API service indexing awesome lists of open source software.

https://github.com/flash3388/frc-robot-template


https://github.com/flash3388/frc-robot-template

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# Frc-Robot-Template

This template is for FRC robot code.

## Run Configuration

The project has several pre-made run configurations for your convenience. These configurations will be loaded automatically
when you open the project.

To use a run configuration, select it from the configurations drop down box and click on _run_

![image](https://github.com/user-attachments/assets/fb76c12a-0256-4874-b509-298ce8634a67)

### Deploying to Robot

Select the `Robot Deploy` run configuration and click on _run_. This will build and deploy the code to the robot.

![image](https://github.com/user-attachments/assets/22032a69-ac12-459c-9a41-6616eb9e5896)

#### Deploying with Debugger

Select the `Robot Deploy Debug` run configuration to deploy the code with debugger enabled.

![image](https://github.com/user-attachments/assets/fa03ea61-0e7f-46cb-91c6-68df621bbdc7)

To attach a debugger, after a successful deployment (i.e. wait for the deployment to finish successfully), select and run the `RoboRIO Debugger` (run with debug, the bug button, not the run button).

![image](https://github.com/user-attachments/assets/c8fd20d5-fe5b-4685-90af-35a49b7e05b1)

### Running Simulation

Select the `Simulate` run configuration and click on _run_. This will build and run the code in the simulator.

![image](https://github.com/user-attachments/assets/298dc0ff-2ed9-4b24-9861-0bb8cc3bbf23)

#### Running with Debugger

Select the `Simulate Debug` run configuration and click on _run_. This will run the simulation with debugger enabled.

![image](https://github.com/user-attachments/assets/b9dc96e7-a22d-4b03-9874-44ecd2c9a37b)

Once the console prints `Listening for transport dt_socket at address` select and run the `Simulation Debugger` run configuration (run with debug, the bug button, not the run button).

![image](https://github.com/user-attachments/assets/9c621cf1-93d0-47fd-a631-4e684e8342c1)

![image](https://github.com/user-attachments/assets/67de48dc-3360-4588-b38f-2bac184dcb60)

Note that doing all these will run two configuration simultaneously. This is fine, but when you wish to stop the simulation you will need to stop both the simulation and the debugger.

![image](https://github.com/user-attachments/assets/6dc3a460-31a3-4675-9378-a5c7cc57b9c4)