Download and instal android studio
Download FTC SDK from github
go to a command prompt
create a new directory called roboknights then (to do this type mkdir roboknights ) then change the directory into roboknights ( to do this type cd roboknights )
then when you are in the roboknights directory you want to type the following command to clone the git repo
The following two repos need to be cloned and then modules need to be created within the FTC app for them. You will need to say new and then import module specify the actual location they have been downloaded to.
This task will be used to document the information to interact with git.
Primary important commands: to copy a git repo to a local machine to use to edit or to use within a git clone
to get information about the git repo make sure you are in the right directory and use git status
git pull to pull the latest changes from the repo
git add to add individual files git add . to add all files that are showing as modified under the git status
git commit -m "task tasknumber and words to describe what changes are being put in"
git push to send the changes to github on devops
git simple guide http://rogerdudler.github.io/git-guide/
Setting up your machine in the first place
Download and instal android studio Download FTC SDK from github go to a command prompt create a new directory called roboknights then (to do this type mkdir roboknights ) then change the directory into roboknights ( to do this type cd roboknights ) then when you are in the roboknights directory you want to type the following command to clone the git repo
git clone https://github.com/ftctechnh/ftc_app.git
Download FTC Image repo from github
git clone https://github.com/lasarobotics/FTCVision.git
The following two repos need to be cloned and then modules need to be created within the FTC app for them. You will need to say new and then import module specify the actual location they have been downloaded to.
Download navx code
git clone https://github.com/kauailabs/navxmxp.git Add the submodule the same way you added vision code.
Copying the actual code to the submodule
git submodule add https://github.com/CamelotRoboKnights/team8569.git TeamCode/src/main/java/org/firstinspires/ftc/teamcode/team
you will have to update some of the gradle files to add the submodules, the following lines need to be added to the appropriate gradle files
Add if running on a mac check the lib path by default the path may have the windows path, instead you need to change to ../Libs