Programming TeleOp
Getting Started!
This year's Starter Bot program offers a slightly more technical solution than previous years. If your team is new to FTC, or in need of a review, we strongly recommend checking out our updated Hello Robot Programming Guide before diving in!
To begin, let's take a look at the configuration and actuators used in this year's design.
Configuration
Before getting started with programming we needed to create a configuration file. Below is an overview of how the robot is configured for the TeleOp code to function as expected:
Port Type | Port Number | Device Type | Name |
---|---|---|---|
Motor | 0 | REV Robotics Ultraplanetary HD Hex Motor | arm |
Motor | 1 | REV Robotics Core Hex Motor | wrist |
Motor | 2 | REV Robotics Ultraplanetary HD Hex Motor | leftDrive |
Motor | 3 | REV Robotics Ultraplanetary HD Hex Motor | rightDrive |
Servo | 4 | Servo | claw |
Servo | 5 | Continuous Servo | intake |
Configuration File Download
Right click the file below and select "save link as". To put this configuration file on your robot, drag this file into the "FIRST" folder of your Control Hub's file system.
You will need to activate the configuration using the Driver Hub before proceeding. Click here to learn more about the configuration process.
Wiring Diagram
Device Name | Device Type | Port |
---|---|---|
arm | UltraPlanetary Gearbox Kit and HD Hex Motor | Motor/Encoder Port 0 |
wrist | Core Hex Motor | Motor/Encoder Port 1 |
leftDrive | UltraPlanetary Gearbox Kit and HD Hex Motor | Motor/Encoder Port 2 |
rightDrive | UltraPlanetary Gearbox Kit and HD Hex Motor | Motor/Encoder Port 3 |
claw | Smart Robot Servo | Servo Port 4 |
intake | Smart Robot Servo - set to continuous mode | Servo Port 5 |
The Smart Robot Servo can be changed to continuous mode using the SRS Programmer!
Gamepad Setup
The 2024-25 REV DUO FTC Starter Bot is designed to use a split arcade drive for the default. Check out our Upgrades page for the arcade drive version of the program.
In split arcade drive, the left joystick will control forward and reverse motion of the robot, and the right joystick will control turning. This is similar to how some RC cars are driven and video games are played.
Not all gamepads have buttons labeled the same way. Check the manufacturer's documentation for accurate button mapping.
2024-25 REV DUO FTC Starter Bot Gamepad Layout:
Gamepad Input | Function |
---|---|
Right Joystick | Turn left and right |
Left Joystick | Drive forward and reverse |
A/Cross | Intake Preset Position
|
B/Circle | Wall Grab and Unhook Preset Position
|
Y/Triangle | Hover High and Clip High Preset Position
|
X/Square | Low Basket Preset Position
|
D-pad Up | Arm Up |
D-pad Down | Arm Down |
D-pad Left | Wrist Out |
D-pad Right | Wrist In |
Left Bumper | Reset arm/wrist to Initialization Position |
Right Bumper | Claw toggle to open or close |
Left Trigger | Reverse intake flaps |
Right Trigger | Run intake flaps |
More information on programming gamepads for use with your robot can be found at Hello Robot - Using Gamepads.
The REV USB PS4 Compatible Gamepad (REV-31-2983) has two remappable M-buttons on the back side of the controller. By default, these are mapped to circle and cross.
Please see the product page for directions on remapping these buttons.
TeleOp Program Downloads
Blocks (v1.0.2):
Check out FIRST's guide on uploading a Blocks program!
Java (v1.0.1):
Any updates to our example programs are documented in our changelog.
The following pages will be a deep dive into the Blocks code, grab your snorkel and let's get started!
Last updated