Page:
Running Your Op Mode
Pages
1. Updating the DS App
2. Updating the RC App
3. Updating Hub Firmware
4. Updating the Control Hub OS
5. Updating the Driver Hub OS
6. Updating FTC Software Tools
Advanced Topics
Android Studio Tutorial
AprilTags for FTC Blocks
Automatically Loading a Driver Controlled Op Mode
Blocks Reference Material
Blocks Sample Op Mode for TensorFlow Object Detection
Blocks Sample OpMode for TFOD
Blocks Sample TensorFlow Object Detection Op Mode
Blocks Tutorial
Changing PID Coefficients
Changing PIDF Coefficients
Choosing a Programming Tool
Computer Vision Overview
Configuring Your Android Devices
Configuring Your Hardware
Connecting Devices to a Control or Expansion Hub
Connecting a Laptop to the Program & Manage Network
Controlling a Servo (Android Studio)
Controlling a Servo (Blocks)
Controlling a Servo (OnBot Java)
Creating and Running an Op Mode (Android Studio)
Creating and Running an Op Mode (OnBot Java)
Custom FTC Blocks (myBlocks)
Custom TFOD Model with Blocks
DS app on Control Hub
Datalogging Part 2, Custom Data
Datalogging Part 3, RC File Transfer
Datalogging Part 4, Java Learning Exercise
Datalogging
Disabling Android Studio Instant Run
Downloading the Android Studio Project Folder
Driver Station Speech Telemetry
Enabling Developer Options
External Libraries in OnBot Java and Blocks
FTC Phone Pairing
FTC Self Inspect
FTC Single Hub
FTC Webcam Controls
Home
Identifying Vuforia VuMarks
Installing Android Studio
Installing a Javascript Enabled Browser
Java Sample Op Mode for TensorFlow Object Detection
Java Sample OpMode for TFOD
Java Sample TensorFlow Object Detection Op Mode
Managing Electrostatic Discharge Effects
Managing Your Control System
Managing a Control Hub
Managing a Smartphone Driver Station
Managing a Smartphone Robot Controller
OnBot Java Reference Info
OnBot Java Tutorial
Playing Audio Files
Required Materials
Running Your Op Mode
TFOD Sample OpMode with Java Builder
TensorFlow for Blocks
The FTC Control System
Timers in FTC Blocks
Troubleshooting
Universal IMU Interface
Updating FTC Software
Using Computer Vision in FTC
Using Sensors (Android Studio)
Using Sensors (Blocks)
Using Sensors (OnBot Java)
Using TensorFlow Lite for the Ultimate Goal Challenge
Using TensorFlow in Freight Frenzy
Using Two Expansion Hubs
Using Your Android Device
Using a Custom TensorFlow Model with Blocks
Using a Custom TensorFlow Model with Java
Using a TensorFlow Pretrained Model to Detect Everyday Objects
Using an External UVC Camera and a Powered USB Hub
Using an External Webcam with Control Hub
Using the utomatic TeleOp
Vuforia for Blocks
Webcams for FTC VisionPortal
Writing an I2C Driver
Writing an Op Mode with FTC Blocks
Clone
3
Running Your Op Mode
FTC Engineering edited this page 2019-07-09 11:36:45 -04:00
If your op mode requires input from a gamepad, then you will need to connect a Logitech F310 gamepad to the Driver Station. Note that you can have up to two gamepads connected through a USB hub to a Driver Station. However, in this example, we will only have a solitary gamepad connected.
Note that you will need an estimated 10 minutes to complete this task.
Running Your Op Mode |
---|
1. Before you connect your gamepad to the phone, verify that the switch on the bottom of the gamepad is set to the “X” position. |
2. Connect the gamepad to the Driver Station using the Micro USB OTG adapter cable. |
3. For the examples in this wiki, the op modes are looking for input from the gamepad designated as the user or driver #1. Press the Start button and the A button simultaneously on the Logictech F310 controller to designate your gamepad as user #1. Note that pushing the Start button and the B button simultaneously would designate the gamepad as user #2. |
4. On the Driver Station screen, touch the triangular-shaped, “TeleOp” dropdown list button to display a list available op modes. You should see your recently saved op mode among the list of available op modes that reside on your Robot Controller. Note that the word “TeleOp” is short for “Tele-Operated” and it implies a driver controlled op mode (i.e., an op mode that gets input from a human driver). |
5. Select “MyFIRSTOpMode” to load your op mode on the Robot Controller. Note that even though you are using the Driver Station to select the op mode, the actual op mode instructions will be executed on the Robot Controller phone. |
6. Press the INIT button to initialize your op mode. |
7. Push the Start button (designated by the triangular-shaped symbol) to start the op mode run. |
8. Use the left joystick of the gamepad to control the operation of the DC motor. As you manipulate the left joystick up and down, the target power and the motor power should be displayed in the lower left hand corner of the screen. If you want to stop your op mode, press the square-shaped Stop button on the Driver Station. |