Adding Vendor Libraries¶
Adding a vendor library is straightforward. Open VS Code, then the command palette using
F1 and type the following command
WPILib: Manage Vendor Libraries. This will open a list of choices, as shown.
Manage current libraries - Shows the existing libraries installed and allows you to remove them.
Check for updates(offline) - Checks if there is an update for a library in the offline folder.
Check for updates(online) - Checks if there is an update for a library online.
Install new libraries(offline) - Installs a new library in the offline folder.
Install new libraries(online) - Installs a new library from the internet.
For this guide select Install new libraries(online).
There are multiple vendor libraries available. The ones supported on the VMXpi are listed below.
Kauailabs’ NavX Library
Studica’s Titan Library
REVRobotics SparkMax Library
Enabling the SparkMax requires adding some code to two sections.
CTRE Phoenix Library
Enabling a Phoenix controlled device requires adding some code to two sections.