WestlakeLEARN
FTC / Java

First Tech Challenge

FTC / Java

01 · Java for FTC
  • OpMode Anatomy and Hello Robot
  • Variables, Math, and Decisions
  • Methods, Classes, and Robot Helpers
02 · FTC Hardware Essentials
  • Hardware Map and RobotHardware
  • Motors, Servos, and Sensors
  • IMU, Encoders, and Bulk Caching
03 · TeleOp and Mecanum
  • Robot-Centric Mecanum Drive
  • Field-Centric Driving
  • Driver Ergonomics and Safe TeleOp
04 · Subsystems and Commands
  • Subsystem Lifecycle
  • Enums and Finite State Machines
  • Command-Based OpModes
05 · From Timed Steps to Actions
  • Timed and Encoder Autonomous
  • Autonomous State Machines
  • Actions and Sequencing
06 · PID and Feedforward
  • PID Basics
  • Feedforward and PIDF
  • Dashboard Tuning Workflow
07 · Motion Profiling1/3
  • Motion Profile Concepts
  • Implementing a Profiled Mechanism
  • Testing Profiles and Failure Modes
08 · OpenCV and AprilTags
  • VisionPortal Camera Setup
  • OpenCV Color and Region Processors
  • AprilTags and Field Pose
09 · Setup and Tuning
  • Road Runner 1.0 Install and Drive Class
  • Feedforward Tuning
  • Localization and Validation
10 · Trajectories, Actions, and MeepMeep
  • Action Builder and Trajectories
  • MeepMeep Preview
  • Full Road Runner Autonomous
11 · Git, Debugging, and Competition Readiness
  • Git Workflow for FTC Teams
  • Telemetry-First Debugging
  • Competition Readiness Checklist
12 · Driver Control
  • Driver Control
13 · Autonomous Build
  • Simple Autonomous
14 · Debugging
  • Debugging with Telemetry

07 / Motion Profiling

Motion Profile Concepts

Understand position, velocity, acceleration, and why smooth targets matter.

55 minControlMotion Profiling

You will

  1. 01Explain why instant target jumps cause harsh motion.
  2. 02Read a trapezoidal velocity profile.
  3. 03Connect max velocity and acceleration to robot consistency.

Why Motion Profile Concepts matters

This lesson is about planning motion before controlling it. A profile turns a sudden target jump into a time-based path of positions, velocities, and accelerations that a controller can follow more gently.

Starting point

Profiles create moving targets

Instead of commanding a mechanism to teleport from one setpoint to another, a profile tells it where it should be at each time. PID then follows that moving target.

Smooth motion improves repeatability

The slide deck notes motion profiling as a consistency fix. Limiting acceleration reduces jerk, wheel slip, belt stretch, and mechanism bounce.

Build path

Draw the motion first, then code it. Students should label acceleration, cruise, deceleration, total time, and target position before implementing a profiled mechanism. The code should regenerate the profile only when the target changes, then follow the current profile state each loop.

For this specific lesson, students should first restate the goal in robot terms, then identify the value or behavior they expect to observe, then run the smallest test that proves the idea. The lesson should feel like a guided lab: predict, run, observe, explain, and only then extend.

ProfileVocabulary.java · Java

ProfileConstraints constraints = new ProfileConstraints(
    900.0,  // max velocity ticks/s
    1800.0, // max acceleration ticks/s^2
    2200.0  // max deceleration ticks/s^2
);

AsymmetricMotionProfile profile =
    new AsymmetricMotionProfile(currentTicks, targetTicks, constraints);

Debugging and failure modes

Profiled systems fail when the requested motion is physically unrealistic or when the profile is restarted every loop. Saturated output, growing error, overshoot, and late arrival all point to different fixes. The lesson should make students name the failure mode before touching constants.

Practice

Sketch a trapezoidal profile for a lift move. Label accelerate, cruise, decelerate, max velocity, and total time.

Checks

  • The profile starts at the current mechanism position.
  • Velocity does not jump instantly to maximum.
  • Acceleration and deceleration limits are written with units.

Check your understanding

Module check

What does a motion profile calculate over time?

0 of 1 answered

References

Game Manual 0Community FTC programming, control, and robot design reference.FTC DashboardTelemetry, config variables, and tuning support.

Finished reading?

Mark this lesson complete.

You'll move on to “Implementing a Profiled Mechanism” next.

Dashboard Tuning WorkflowImplementing a Profiled Mechanism