Skip to content

Generic CAN Bridge emulating FRC netcomm CAN driver for connecting a PC to the CAN Bus with WPILib 2020+ and SPARK MAX (FW 1.5.0 or higher) or other drivers, currently only supported in Windows.

License

Notifications You must be signed in to change notification settings

FRC-Team-4143/CANBridge

 
 

Repository files navigation

CANBridge

Overview

This repository is for the CANBridge software that is run on non-roboRIO platforms.

Build Requirements

  1. Git
  2. Visual Studio Code or some other equivalent IDE
  3. Gradle Build Tool
  4. Java JDK/JRE

All of these, excluding Git, can be installed and configured with the WPILib Installer, which will include specific versions for building FRC robot code. Gradle needs a C++ compiler, which is included with VS Code.

Building and Publishing

Building is done using the Gradle wrapper, gradlew. The Gradle wrapper is located in the root of the project, so Gradle commands must be run from there.

  1. Clone this repository and open in VS Code
    • When VS Code first opens, select Add workspace folder... underneath Start on the Welcome Screen
  2. Open the VS Code terminal
    • View -> Terminal or Ctrl+`
  3. Run ./gradlew build from root

The output is placed at ~\releases\maven\release\com\revrobotics\usb\CANBridge-cpp\<version>\.

Publishing a new version

Before publishing a new version, run ./gradlew build locally to run the tests. GitHub Actions cannot run the tests because they depend on having a USB CAN device connected.

  1. Bump the version number in publish.gradle and CANBridge.json
  2. Commit the version bump
  3. Create a new tag named vX.X.X at that commit
  4. Push the tag to GitHub
  5. Wait for the draft release to be created
  6. Add release notes to the draft release
  7. Publish the draft release

Changelog

The SDK Changelog can be viewed with Changelog.md.

About

Generic CAN Bridge emulating FRC netcomm CAN driver for connecting a PC to the CAN Bus with WPILib 2020+ and SPARK MAX (FW 1.5.0 or higher) or other drivers, currently only supported in Windows.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 80.7%
  • C 19.1%
  • Shell 0.2%