Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

TechNova-12611/RemoDrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RemoDrive

RemoDrive allows anyone to remotely control your FTC robot! Once you setup a room, anyone can join the room and control your robot using their keyboard or gamepad! This can be used for many things, like:

  • Letting outreach participants control a real robot
  • Letting remote team members control your team's robot

And more! If you want to create your own room, follow the setting up a room instructions, and if you want to join a room, follow the joining a room instructions!

Joining a Room

  1. Head to the RemoDrive website
  2. Select the gamepad you want to use
  3. Enter in the name of the room, which will be provided by the host
  4. Press join!

Instructions on how to use your keyboard to emulate a gamepad will be on-screen.

Setting up a room

RemoDrive has 3 parts: The Robot, The Host, and The Client.

Setting up the robot

In RemoDrive, the robot has a piece of code manipulating the gamepad.

  1. Download the class from the releases section
  2. Copy the class into your project. You can put it anywhere!
  3. Import the RemoDrive class.
  4. Before waitForStart() make a new RemoDrive object, passing the OpMode:
RemoDrive rd = new RemoDrive(this);

You can change the port it uses by passing in an extra argument:

RemoDrive rd = new RemoDrive(this, port);
  1. After waitForStart(), call the run method:
rd.run();
  1. Once the OpMode is complete, call the stop() method to cleanup:
rd.stop();

Setting up the host

The Host needs to be connected to both the robot's WiFi Direct network and a network with internet connection. You can do this through USB wifi. Once you do that, perform the following steps:

  1. Download the host app from the releases section (named RemoDrive_<Your OS>.zip)
  2. Open the host app. It will look something like this:

Screenshot of Host App

  1. Set the host to the URL of the robot controller. On Control Hubs this will be 192.168.43.1
  2. Set the port to the port used on the robot. By default it is 11039, however if you changed it, change it here.
  3. Enter in a unique room name.
  4. Press Host!

Your room is now live! Give the name of the room to anyone who wants to join, and have them follow the how to join instructions!

Credits

RemoDrive is heavily inspired by TeleDrive, which is developed by Mihir Chauhan. RemoDrive is mostly developed by Nv7 with contributions from the FTC 12611 Team