Skip to content
Ryan Au edited this page May 9, 2017 · 2 revisions

Q: How do you program the robot?

A: idk.

At first glance, this whole repository might look big and scary, but in reality, it totally isn't. The only folder you ever need to look at are doc/ and TeamCode/. Basically all of the other stuff is fluff that's only there for the computer to make your android app.

The doc/ directory is very important because inside of that is the "documentation", the structure of methods and packages and methods and other confusing looking stuff to write the code. It also has some base .apk files, like the original Driver Station app and the original (but empty) Robot Controller app. This doc/ folder doesn't, however, tell us how to block code the robot from the robot controller app or correctly configure the robot controller app for each individual robot.

The TeamCode/ directory is important because it contains the important files we want to focus on: opmodes. Opmodes are the various scripts that tell the robot what to do, whether it's running a motor when we push a button, or running a motor for 10 seconds straight. These opmodes are written in Java so if you don't know Java, find a course online, maybe try Codecademy. There are example opmodes from the past made by previous team programmers (auryan898@gmail.com) and there are some opmodes hidden in the FtcRobotController/ too.

btw these opmodes are buried deep within a bunch of folders: *TeamCode/src/main/java/org/firstinspires/ftc/teamcode/*ops5060/

Clone this wiki locally