GETTING STARTED ALL YOU NEED TO KNOW TO MAKE YOUR ROBOT MOVE
BUILDING YOUR BOT
BASIC ROBOT
HARDWARE 1 Modern Robotics Power Distribution Module 2 Modern Robotics Motor Controller 1 Modern Robotics Servo Controller 1 Modern Robotic Legacy Module 1 Modern Robotics CORE Device Interface 1 OTG USB Cable 5 USB cables 3 Powerpole power cable 1Modern Robotics Touch Sensor 1 Modern Robotics Optical Distance Sensor 1 Modern Robotics IRSeeker V3 Sensor
BATTERY
CORE POWER DISTRIBUTION MODULE
CORE MOTOR CONTROLLER
MOTOR
CORE SERVO CONTROLLER
SERVO
CORE LEGACY MODULE
OLD SYSTEM
CORE DEVICE INTERFACE
SENSORS
ANDROID PHONE OR TABLET
WIDI
BASIC PROGRAMMING
OUTLINE Git Hub Getting Started with Android Studio Basic Phone Setup Creating a config mode Setting up the driver station Creating an Op mode Writing your first code Running and troubleshooting Frequent Errors
GETTING STARTED WITH ANDROID STUDIO Install Java Get Android Studio Complete installation Install latest version of JDK from http://www.oracle.com/technetwork/java/ javase/downloads/index.html Get Android Studio from https://developer.android.com/sdk/index.html Follow installation wizard; Follow installations instructions in PushBot Build Guide: http://www.usfirst.org/uploadedFiles/Rob otics_Programs/FTC/Game_Info/2015/P ushBot-Build-Guide.pdf
GETTING STARTED WITH ANDROID STUDIO Get FTC AppMaster from Github Open SDK in Android Studio Explore The folder contains SDK along with some sample code Launch Android Studio Click Open Project Locate FTC_App-Master Explore the sample code provided to you
BASIC PHONE SETUP Install drivers on both phones and the main programming computer (Optional but highly recommended) Remove SIM cards from both phones Download the FTC Driver Station app on the driver control phone and the FTC Robot Controller app on the robot control phone Download ZTE Channel Changer
CREATE A CONFIG MODE FOR YOUR ROBOT Identify motor and servo controllers mounted on robot Create new Config mode in the robot controller app(Under Settings/Configure) Register each motor and servo with custom name based on which port it is connected to. Keep the list of names of your motors and servos
SETTING UP THE DRIVER STATION Connect the driver station to the robot controller(Settings/Pair With Robot Controller) Connect the driver station phone to a usb hub Connect the gamepads to the usb hub If using logitech gamepads(recommended), make sure that the switch on the back is set to "X"
CREATING AN OP MODE Create a new class Extend OpMode Implement init(), loop(), and optionally start() Write your code Register your OpMode in OpModeRegister
WRITING YOUR FIRST CODE Open Op Mode Class Set up the program's 'map' of the robot Create variables for each motor and servo Under the main loop, implement inputs from the gamepads Create code to implement motors and servos based on input from the gamepads
FREQUENT ERRORS Make sure to take out the sim card Restart robot from robot controller after it is plugged in Make sure all motors and sensors are in the ports in which they are supposed to be; Make sure that the names of the motors match with their names in the code Switch controller on “X” this year.