Sylvie's C++ Library For V5
- Easy WS2812B Addressable LED control
- Accurate motor velocity measurements
- Template for making custom velocity controllers
- Many kinds of pre-built filters for general use
- Platform-agnostic, meaning it works with both PROS and VEXcode (VSC Extension)
-
Download the latest version of the Sylib template from the Releases page
-
In the directory where you downloaded the zip archive, run
pros c fetch sylib@<version>.zip -
In your PROS project directory, run
pros c apply sylib@<version> -
In your
main.hfile, make sure to includesylib/sylib.hpp -
In
/include/sylib/env.hppmake sure thatSYLIB_SRC_PRESENTandSYLIB_ENV_VEXCODEare not defined, and thatSYLIB_ENV_PROSis. This makes sure that the right headers are included, and that sylib uses the pre-compiled library provided by the template instead of trying to build it from the non-existent source (which would not compile in a PROS enviroment anyways). -
In your
initialize()function, make sure to includesylib::initialize();
note: Sylib requires PROS kernel 3.7.2 or later to run
Note that this will not work in the VEXcode app itself due to file structure weirdness. It works fine in the VSC extension.
-
From the Releases page, download the latest version of the Sylib source code
-
Copy the contents of the
include/directory from the downloaded files into theinclude/directory of your project -
Copy the contents of the
src/directory from the downloaded files into thesrc/directory of your project -
Include
sylib/sylib.hppanywhere relevant, probably including at the top of yourmain.cppfile -
In
/include/sylib/env.hppmake sure thatSYLIB_ENV_PROSis not defined, and thatSYLIB_ENV_VEXCODEis. This makes sure that the right headers are included, and that sylib compiles the source code instead of trying to use the non-existent PROS template. -
In your pre-auton function, make sure to include
sylib::initialize();
Documentation for Sylib can be found here
This project would not have been possible without the contributions of
- Leo Riesenbach
- Lachlan Davidson
- James Pearman
- Griffin Tabor
- Nick Mertin
- Andrew Strauss
- Jamie Maki-Fern
- Salmon

