VELOCITY ARENA STUDENT

00MakeCode

Block-coding walkthroughs.

Step-by-step pages for each stat. Read the intro first, then pick the stat you're testing. Each walkthrough mirrors the bot test for that stat: variables on top, formula in the middle, button A and button B at the bottom.

CROSSTOWN Starter Files — day-by-day reading order

DAY 05-15

Skills Arena

Program SKILLS ARENA → Code challenges for Open Lab and if there is extra time during match days.

Starter Code → Open in MakeCode ↗
Code Explainer
DAY 01

Speed test

Program SPEED → motor power and run two timed drives. motorPower = SPEED × 100 ÷ 20 in block form.

Starter Code → Open in MakeCode ↗
Code Explainer
DAY 02

Endurance test

Program decay over time using your Endurance allocation. P(t) = 100 − (20 − E) × 1.5 × t in block form.
Enter SPEED, ENDURANCE, and 2000 for TEST_DURATION_MS

Starter Code → Open in MakeCode ↗
Code Explainer
DAY 03

Turning test

Program arc navigation using your Turning allocation. arcSegments = T, turnRatio = 0.2 + (T × 0.02).

Starter Code → Open in MakeCode ↗
Help
DAY 03

Launch Sequence

Program your bot's opening move — line up bot → ball → goal before the match starts.

Starter Code → Open in MakeCode ↗
Code Explainer
DAY 04

Power test

Program the kick using your Power allocation. charge = P², followThrough = 120 + (P × 35). Quadratic, not proportional.

Code Explainer
DAY 05+

Match code template

The full match-day program. Combines all four stat formulas into one bot ready to play. Use this on match days starting Day 5.

Starter Code → Open in MakeCode ↗

Read first

Intro to MakeCode

The block-coding workspace, what each colored category does (Basic, Input, Variables, Math, Cutebot Pro), and how to download a program to your micro:bit.

Open →
DEEPER DIVE

Motor & encoder limits

Closed-loop vs open-loop drive on the Cutebot Pro. Why cruise control holds a steady distance and raw motor power doesn't.

Open →