-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the Beaverlib wiki!
This is a collection of classes and methods for Kotlin using WPILib shared between Teams 5970 and 2898 aimed at making FRC robot programming easier, by creating wrappers for WPILib classes that fully utilize Kotlin's extensive toolkit. However, this library can be used / contributed to by any who wish!
You can add Beaverlib to your FRC robot code as a submodule, by first navigating to your Kotlin directory:
cd src/main/kotlin
Then,
git submodule add https://github.com/beavertronics/beaverlib.git
The new folder will essentially act as its own Github repository, meaning that you can navigate to the directory, and switch branches how you would normally for the parent repository (You can also use Github Desktop by adding the folder as a new repository, or IntelliJ will allow you to use both repositories by representing them as two folders).
To update Beaverlib, you can update it in the terminal with the following command.
git submodule update --init --recursive --remote
- In editors like VSCode and IntellIJ, you can update Beaverlib the same way you update a branch of a repository.
"Why isn't Beaverlib updating / showing up?"
- To fix this, you can delete the Beaverlib directory and then reinstall. Refer to the guide above, "Installing Beaverlib".