Programming TeleOp
Last updated
Last updated
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.
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 |
---|---|---|---|
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.
The Smart Robot Servo can be changed to continuous mode using the SRS Programmer!
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.
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.
Check out FIRST's guide on uploading a Blocks program!
Any updates to our example programs are documented in our changelog.
Device Name | Device Type | Port |
---|---|---|
Gamepad Input | Function |
---|---|
Quick Links |
---|
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
Right Joystick
Turn left and right
Left Joystick
Drive forward and reverse
A/Cross
Intake Preset Position
Arm down, wrist out
B/Circle
Wall Grab and Unhook Preset Position
Arm up to grab, wrist in - first click
Arm up to unhook, wrist in - second click
Y/Triangle
Hover High and Clip High Preset Position
Arm up to low basket height, wrist in
Arm lower to clip, wrist in
X/Square
Low Basket Preset Position
Arm up to low basket height, wrist out
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
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