Skip to content
Tactiverge

Olympiad · Practice · public practice problem

A contract between two modules

Difficulty 4 of 510 points in 4 partsSuggested time ~20 min (never timed here)

The problem

A robot arm has three loops: a motor speed loop at 1 kHz, a position loop at 100 Hz and a planner at 10 Hz. The position loop reads a joint-angle module whose interface contract says: a sample every 10 ms, timing jitter at most ±1 ms, and never more than 2 consecutive samples missing.

  1. Part (a) · 1 point

    How many speed-loop updates happen per position-loop update?

    (pure number)Tolerance: exact

  2. Part (b) · 4 points

    Within the contract, what is the longest possible gap between two received samples?

    msTolerance: ±0.5 ms

  3. Part (c) · 2 points

    The position loop has a watchdog that stops the arm if no sample arrives. Which timeout fits the contract best?

  4. Part (d) · 3 points · rubric with 2 criteria

    Explain what goes wrong with a 20 ms timeout, and what goes wrong with a 1 s timeout.

    Written parts stay in your browser. Reveal the worked solution to mark yourself against the rubric.

Checked so far: 0 of 7 automatically marked points, plus 3 for written parts you mark yourself against the rubric. Nothing is saved.

Stuck? Hints, then the worked solution

Written with AI assistance. Review status: technically-checked (answers recomputed independently with units verified by automated tests); not yet reviewed by an educator or judge.