Create OpMode from template
create_opmodeScaffold Java OpModes for FTC robots using templates for teleop, autonomous, and Pedro Pathing.
Instructions
Scaffold a new Java OpMode in TeamCode. Templates:
linear-teleop: Minimal LinearOpMode TeleOp skeleton (hardware mapping left to you)
mecanum-teleop: Complete 4-motor mecanum/omni TeleOp with POV drive (based on BasicOmniOpMode). Hardware names: left_front_drive, left_back_drive, right_front_drive, right_back_drive
linear-auto: Minimal LinearOpMode Autonomous skeleton with elapsed-time guard
pedro-auto: Pedro Pathing autonomous using a finite state machine over PathChains. Requires install_pedro first; tune poses for your season
pedro-teleop: Pedro Pathing TeleOp: manual mecanum drive with on-demand automated path following and slow mode. Requires install_pedro first
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | OpMode group on the Driver Station (default: Generated) | |
| dryRun | No | Validate and return the generated Java without writing any files | |
| template | Yes | ||
| className | Yes | Java class name, e.g. BlueLeftAuto | |
| overwrite | No | ||
| opModeName | No | Display name on the Driver Station (default: class name) | |
| packageName | No | Java package (default: org.firstinspires.ftc.teamcode) | |
| projectPath | No | Path to the FtcRobotController SDK project. Defaults to $FTC_TOOLCHAIN_PROJECT_DIR, then the workspace clone made by create_project. |