Jonathano is correct, using the Common library as a submodule requires that you have a local git repo already initialized.
If you’re trying to clone the
2019CompetitionRobot-Public project, you don’t need to add a submodule, as it’s already added. Instead, you’ll need to run
git submodule init and then
git submodule update in the root of the cloned project.
If you’re making a new robot project, run
git submodule add https://github.com/FRCTeam2910/Common-Public.git jester (note the
-Public in the Github URL) in the root of your git repo (robot project), then follow the remaining instructions in the readme (adding lines to
Alternatively, you can also just download the Common library (eg as a .zip from GitHub) and slap it into a folder called “jester” in the root of your robot project in lieu of using git submodules. You’ll still need to add the lines to your
In the end, you just need a folder structure of
/jester/robot/src/... in the root of your robot project as well as the lines in
settings.gradle to use the Common library. However you do that – git, manually, whatever – doesn’t particularly matter, though each method has its benefits and drawbacks.
For the MK2 modules, the driver is currently in the
2019CompetitionRobot-Public project, direct link to file. You’ll need to use this driver (unless you want to re-implement your own), and you can essentially copy it and just change the package path, assuming your dependencies are all imported properly. We haven’t transferred it over to the Common library yet, but will eventually.
Also take a look at DrivetrainSubsystem.java for how we initialize and use these modules.
Let me know if you have any issues with this.