Skip to content

Commit

Permalink
docs(urcl): Add Python setup
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek authored and jwbonner committed Jan 5, 2025
1 parent 91c65b8 commit 7e07a30
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docsSite/docs/more-features/urcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ As this library is not an official REV tool, support queries should be directed

## Setup

Install the URCL vendordep by going to "WPILib: Manage Vendor Libraries" > "Install new libraries (online)" in VSCode and pasting in the URL below.
Install the URCL vendordep by following the instructions to install [3rd party libraries](https://docs.wpilib.org/en/stable/docs/software/vscode-overview/3rd-party-libraries.html). Use the following vendor JSON URL:

```
https://raw.githubusercontent.com/Mechanical-Advantage/URCL/maven/URCL.json
Expand Down Expand Up @@ -62,6 +62,23 @@ void Robot::RobotInit() {
}
```

</TabItem>
<TabItem value="python" label="Python">

```python
import urcl
import wpilib

class Robot(wpilib.TimedRobot):
def robotInit(self):
# If publishing to NetworkTables and DataLog
wpilib.DataLogManager.start()
urcl.start()

# If logging only to DataLog
urcl.start(wpilib.DataLogManager.getLog())
```

</TabItem>
<TabItem value="advantagekit" label="AdvantageKit">

Expand Down

0 comments on commit 7e07a30

Please sign in to comment.