← Lessons Target Challenge · Worksheet ENES

Velocity Arena · Gotham Tech

The Target Challenge

Team: Names:

You already have an equation for how far your bot drives. Now run it backwards: given a target line on the floor, find the drive time that stops your bot right on it.

You need your Distance Lab equation, the Target Challenge code on your bot, and the target line your teacher tapes down.

1 Copy your equation

From the Distance Lab. It looks like distance = speed × time + start-up. Here speed is your bot's cm per second from the Distance Lab (a number like 38) — not the 1–17 Speed stat you set in the code.

Our equation
distance = × time +
so our speed is
cm per second  ·  start-up cm

2 Turn the equation around

Your equation gives distance when you know the time. But the target gives you the distance and asks for the time. So solve it the other way:

To hit a target distance
time = ( target − start-up ) ÷ speed
Why that works

Start from distance = speed × time + start-up. Set the distance to your target. Undo the start-up (subtract it), then undo the speed (divide by it). What's left is the time.

Your start-up is a negative number, so subtracting it actually adds — e.g. target − (−7) = target + 7. Keep the sign and let the arithmetic handle it.

3 Round 1 — program it, then fire

To hit the line exactly, you tell the bot your drive time in milliseconds and download. In the Target Challenge code, you change only the ★ line.

Target 1
Target distance (from your teacher): cm
Work all of this out BEFORE you drive.
Time = ( − ) ÷ = seconds  (target − start-up, then ÷ speed)
In milliseconds: seconds × 1000 = ms
Put it on the ★ line: let driveMs = — then Download and press A.
Where did the bot actually stop? cm
Miss = target − actual = cm  (a plain number — how far off, over or short)

4 Change one thing, then aim again

If you missed, why? Change one thing — a better speed number, a better start-up, or fix a crooked drive — and aim at a new target. Keep going.

RoundTarget (cm)Time we set (s)Where it stopped (cm)Miss (cm)The one thing we changed
2
3
4

Each round: new target → new time → new ms → change the ★ line → Download → drive. The shaded columns are the ones you set and measure.

5 Precision Final — the competition

Your teacher calls out a surprise target nobody has practiced. Everyone works out the time, programs the exact milliseconds, and drives. Closest to the line wins. Best of 2 — you get two tries and your closest one counts.

Final · surprise target = cm
Time = ( − ) ÷ = s  →  ms  (× 1000)
Try 1 — where it stopped: cm   miss: cm
Try 2 — where it stopped: cm   miss: cm
Our best miss: cm

Everyone aims at the same target and everyone programs the exact time — so the winner is whoever's equation and measuring were sharpest. Fair and square.

6 Get ready to teach it (Thursday)

On Thursday, a visitor tries your Target Challenge. You teach them to hit the line using your equation. Write the one sentence you'll open with — no jargon:

"To make the bot stop on the line, take the target distance, , then . That gives you the number of seconds to drive."

Practice on a teammate first

a. Which teammate did you teach?

b. Did they hit the target after one explanation?  

c. Where did they get stuck? Rewrite that part of your explanation: