Tech Toolbox
  • Please Visit https://ftc-tech-toolbox.vercel.app/ for the new tech toolbox!!
    • Introduction
    • Choosing an IDE
    • Creating an OpMode
    • Motors and Encoders
    • Servos
    • Gamepad Controls
    • Drive Systems
    • Lynx Modules
    • Telemetry
    • Wireless Download
    • The Sleep Command
  • Please Visit the New Link
    • Tank Drive / Skid Steer (Part 1)
    • Mecanum Drive (Part 1)
    • Turrets
    • Linear Slides
    • Kicker
    • Active Intake / Sweepers
    • Flywheels / Shooters
  • Please Visit the new Link
    • Base Class (Step 1)
    • Module Classes (Step 2)
    • OpMode Classes (Step 3)
  • This domain is now depreciated and is no longer updated!
  • This domain is now depreciated and is no longer updated!
    • What is Localization?
    • General Odometry Logic
    • Tank (No Deadwheels)
    • Mecanum (No Deadwheels)
    • Deadwheel Odometry (Mecanum and Tank)
    • VSLAM
  • This domain is now depreciated and is no longer updated!
    • What is Control Theory?
    • Custom PID Loops
    • Essential Control Theory Concepts
    • Resources for Learning Advanced Control Theory
  • This domain is now depreciated and is no longer updated! Please visit this domain for the new TT!
    • Introduction
    • Mecanum Drive (Part 2)
    • Tank Drive (Part 2)
    • Introduction to Pure Pursuit
    • Pure Pursuit: Mecanum
    • Pure Pursuit: Tank
    • Advanced Pure Pursuit
    • Guided Vector Fields
    • Autonomous Movement Libraries
  • Sensors
    • IMU
    • Color Sensors
      • Advanced Sensing Code
    • Distance Sensors
    • Touch Sensor
  • Computer Vision
    • Setting up Camera/Intro to Computer Vision Tools
      • Intro to OpenCV
      • Vuforia
    • Streaming Frames
    • Color Thresholding
    • April Tags
    • Linear Regression
    • Machine Learning Toolchain
    • Object Distance Estimation
    • Object Tracking / Driving to an Object
    • Computer Vision Simulators
  • Simulators
    • Beta8397 Simulator
    • VRS
  • Cool Codebases
Powered by GitBook
On this page
  • Android Debug Bridge
  • ADB File Path
  • Adding to Path
  • Control Hub Connection
  • Usage in Android Studio
  • Download
  1. Please Visit https://ftc-tech-toolbox.vercel.app/ for the new tech toolbox!!

Wireless Download

Downloading Code Wirelessly

PreviousTelemetryNextThe Sleep Command

Last updated 1 year ago

Resources

  • - The IP adress used in the video may not match modern control hubs, make sure to change it to the right one.

When downloading code in your robot, it is much more efficient and easier to use the wireless download feature compared to connecting a USB cord to your control hub every time you want to run updated code on the robot.

Android Debug Bridge

We will be using something called Android Debug Bridge(ADB) to download the code wirelessly to the robot. First, you should add the adb executable in your files to your path variables so it can be accessed from everywhere.

ADB File Path

Here is the default adb file path on windows computers

C:\Users\"User Name"\AppData\Local\Android\SDK\platform-tools

If we don't add the adb path to path variables, we won't be able to access it from our Android Studio IDE Environment

Adding to Path

To go to your environment variables, first open the control panel on your computer, then go to these sections.

System and Security>>System>>Advanced System Settings>>Environment Variables

The user variables should have a left side that looks something like this with different variable types. Double click the path variable. Then, hit browse, and then to go the previously mentioned file path for adb. After you have gone to the file path, hit OK and then you will have that file path saved

Now, you can use the adb executable anywhere since it is one of your computer's path variables!

Control Hub Connection

First, you have to connect to the wifi network of your control hub, by clicking on wifi networks and finding your control hub's network. Make sure that your robot is on and the control hub has a green light before doing this.

Usage in Android Studio

Now, in Android Studio, go to the terminal tab, which is found at the bottom bar of the screen.

Use this line to ensure nothing else is connected via adb

adb disconnect

Use this to connect to the control hub

adb connect 192.168.43.1:5555

The numbers after the connect are the ip address of the Control Hub. If you are using a robot phone instead, you must find the ip address of the phone by looking at the Program and Manage section of the phone.

Download

Now that you are wirelessly connected, all you need to do to download your code is hit the green play button at the top of the android studio IDE.

Video Tutorial