Configuring the project for VMXpi¶
This guide will show the steps required to configure the project to be deployed to the VMXpi.
This extension is also used to cache updates to be sent to the VMXpi. It is important to make sure this extension and the version of
build.gradle is up to date.
Installing VMXpi Extension¶
A VSCode extension was created to manage the
build.gradle file in the project folder. The extension allows for the project to swap between the roboRIO and VMXpi as targets for deployment.
To install the extension head over to the Extensions tab on the left panel or hit
Ctrl + Shift + X.
In the search bar, search for
Click on the extension to open the extension page in the main window.
Install to install the extension.
The installation will be successful when you see the VMXpi logo pop up next to the WPILib logo.
Using the Extension¶
There are four commands in the extension palette.
Update WPILib Versionwill update to the current GradleRIO version for the VMXpi
Change the deploy target to VMX-Pi (from RoboRIO)will update the
build.gradlefile to use the VMXpi as a target
Change the deploy target to RoboRIO (from VMX-Pi)will update the
build.gradlefile to use the roboRIO as a targets
Verify the Project's build.grade filechecks if everything is good to go with the file
To switch the project over for the VMXpi, the command
Change the deploy target to VMX-Pi (from RoboRIO) needs to be run. After running, it will auto rebuild the project and cache any libraries that are missing.
Installing the Raspbain Toolchain (c++ only)¶
For c++ the Raspbian Toolchain is required for building and deploying to the VMX-pi.
The first option is to use the VMX-pi Extension. Open the extension and use the command
Change the deploy target to VMX-pi (from RoboRIO). This process will then install a bunch of files including the toolchain.
The second option is to download toolchain manually. Open the WPILib extension and use the run a command in gradle command.
In the window then use the command