SmartDashboard extension for our team's custom widgets
Status alerts are for displaying boolean values critical to drivers. Status alerts are designed to be resized, and made large enough that drivers can see them in peripheral vision.
- Download
dashboard4131.jar
from the root of this repository intoC:\Users\{you}\SmartDashboard\extensions
. - Run SmartDashboard as normal.
- Enter Editable mode by pressing Ctrl-E or selecting View > Editable from the ribbon.
- Right-click any field and hover over "Change to..."
- Pick the field type you want to use.
- Clone this repository using Git.
- In Eclipse, create a project in this folder.
- Right-click the project, hover over Build Path, and click Configure Build Path...
- Go to the Libraries tab, and click Add External Jars...
- Select to
C:\Users\{you}\wpilib\tools\SmartDashboard.jar
. - Download SmartDashboard's source from the GitHub repository. Click "Clone or Download" and "Download as ZIP", then extract it.
- In Eclipse, expand the option for SmartDashboard.jar and double-click the "Source attachment" option.
- Click "External Folder..."
- Select
{path-to-SmartDashboard-source}/src/main/java
.
- Right-click the project and click "Export..."
- Expand Java and select JAR file. Click Next.
- Deselect .classpath, .gitignore, and .project on the right side.
- Set the export destination to "C:\Users{you}\SmartDashboard\extensions\dashboard4131.jar". This will put it in the place for SmartDashboard to use it.
- Click Finish.
- For committing, we use a pre-commit hook to copy the jar from its exported location to the repository root so that it is uploaded. To set this up, create a file called
pre-commit
in.git/hooks
with this content:
#!/bin/sh
cp C:/Users/{you}/SmartDashboard/extensions/dashboard4131.jar . #Copy the exported jar into the repository
git add dashboard4131.jar #Add it, so that it's committed with the rest of the files
Now for every commit, the jar will be copied and added to the commit.