Code for our Vex Pro robot, and this repo is used to create new robots.
Clone the repository:
git clone https://github.com/LN-STEMpunks/VexBot.git && cd VexBot
Now, whether you want to work on python, or java, either run cd Python
or cd Java
.
Now, to see instructions for that language, view the README.md in that subfolder.
First, follow Getting Started, then:
We will push straight to master. But, before you do, make sure the code runs.
You can test these with:
python3 Python/src/robot.py test
or replace test
with sim
to simulate
Or, for downtrodden Windows users:
py Python/src/robot.py deploy
cd Java && ant deploy
If these run fine, then run:
git add $FILES
where $FILES
are the files you want to commit. (most likely Python/
or Java/
and CHANGELOG.md
)
git commit -m"MESSAGE HERE"
replacing MESSAGE HERE with whatever message you want to use.
git push
Written by the L&N STEMpunks. More specifically, the programming team.
We use gradle Travis, Git, Java, and primarily VSCODE and eclipse to develop this.
We also have a python version, which is meant to be equivelant to the java version, but more Pythonic.
Ben Klein wrote most of the base, which was then refactored by Cade Brown.
To create a new robot, create a repo and run:
ROBOT='Duke'
URL="https://github.com/LN-STEMpunks/$ROBOT.git"
git clone https://github.com/LN-STEMpunks/VexBot.git $ROBOT && cd $ROBOT
sed -i -e "s/VexBot/$ROBOT/g" README.md
git remote set-url origin $URL
git push
Then, you may need to replace some other things as well.
See LICENSE.md for an explanation, or our full licensing page.
Essentially, this repo is GPLv3 with some BSD and Apache components.
2017 L&N STEMpunks