PlayingWithFusion.com Home

0 Items
View Cart

Document: 1205
Posted: December 29, 2019
Modified: December 23, 2021

Home > Tech Article Categories > FRC and Robotics > FRC Software library Installation

FRC Software library Installation

Installation instructions for the Playing with Fusion device support library for the FRC roboRIO.

Introduction

This library supports the Venom motor/controller as well as the CAN enabled Time of Flight sensor. Both online and offline installation is supported. See the WPILib 3rd party library information page for more information.

At a Glance

C++/Java Json URL for online installation: https://www.playingwithfusion.com/frc/playingwithfusion2023.json

Online C++ and Java driver installation

The Playing With Fusion (PWF) control library (PlayingWithFusionDriver) can be imported into a robot project directly from Visual Studio Code. The following steps will download the latest version of the driver from the Playing With Fusion website.

  1. Click on the WPILib Command Pallet icon on the top right corner of the VS Code window.
  2. Select WPILib: Manage Vendor Libraries
  3. Then select Install new library (online) end enter the following URL:
  4. Press enter

If everything works, a folder named vendordeps will be created in the root directory of the project and will contain a file named playingwithfusion2022.json.

Offline C++ and Java driver installation

The PWF library may also be installed without an internet connection. First, download the latest version of PlayingWithFusionLibrary2022.zip

Once the driver files are available, preform the following steps:

  1. Unzip the PlayingWithFusionDriver zip file to C:\Users\Public\wpilib\2022\ under Windows or ~/wpilib/2022/ under Mac/Linux.
    • If asked to merge, select yes.
    • This zip file includes the driver libraries (so files), C++ header files, Java source as well as the JSON file which is used by the FRC build system to identify the Playing With Fusion driver.
  2. Create a robot project using Visual Studio Code (if one does not already exist)
  3. Click on the WPILib Command Pallet icon on the top right corner of the VS Code window.
  4. Select WPILib: Manage Vendor Libraries
  5. Then select Install new library (offline)
  6. Select PlayingWithFusion

If everything works a folder named vendordeps will be created in the root directory of the project and will contain a file named playingwithfusion.json.

LabVIEW Driver Installation

The Venom LabVIEW library may be installed without an internet connection. First, download the latest versions of libPlayingWithFusionDriver.zip and playing_with_fusion_lib_for_frc-*.vip.

Once the driver files are available, preform the following steps:

  1. Copy libPlayingWithFusionDriver.so, libwpinet.so and libwpiutil.so from the libPlayingWithFusionDriver.zip into the /usr/local/frc/third-party/lib folder on the roboRIO. All three so files must be present in order for the RIO to sucessfully open libPlayingWithFusion.so See the FRC roboRIO SFTP instructions for more details.
  2. Reboot the RIO. It will not load libPlayingWithFusionDriver.so until the next reboot after the library uploaded or modified.
  3. Double click on the *.vip file. This will open the LabVIEW Package Manager
  4. Click the Install button

Videos


Playing With Fusion smart device setup and configuration

External Links

Related Products