TK Study

Software Engineering › Key terms › Y11 Mechatronics › Control algorithm pattern (line follower)

Control algorithm pattern (line follower)

Code pattern Check Y11 Mechatronics

Definition

A closed-loop loop: WHILE the robot is running, read the sensor, IF the sensor sees dark THEN turn one way ELSE turn the other, ENDIF, ENDWHILE.

Example

WHILE on: read light; IF dark THEN turn left ELSE turn right.

Check this one: Not found word-for-word in the supplied syllabus, specifications, marking guidelines or notes; the definition is standard computing knowledge, so check it against your class notes.

Where it is used in the test

Syllabus area: Y11 Mechatronics.

Question types it can appear in

No past question in this bank is linked to this term yet. It can still be tested through the question types above.

Study links

How to use it in an answer

A model sentence

General advice, built from the definition and example above

Code pattern: “A closed-loop loop: WHILE the robot is running, read the sensor, IF the sensor sees dark THEN turn one way ELSE turn the other, ENDIF, ENDWHILE.” Then apply it: WHILE on: read light; IF dark THEN turn left ELSE turn right.

In a short answer, give the definition in your own words first, then tie it to the situation in the question. Do not copy the example above unless it fits the scenario.

Technique for the question types

Common mistakes

Marker feedback on other questions of the same type (code and diagram feedback often applies across questions)
  • Check the sources: Not found word-for-word in the supplied syllabus, specifications, marking guidelines or notes; the definition is standard computing knowledge, so check it against your class notes.
  • Pseudocode questions (2025 HSC exam Q17): use pseudocode control structures accurately; iterate an array and sum it; apply relational operators correctly; use the stimulus to choose the right structures.
General advice
  • Use the term exactly as the syllabus words it, then link it to the scenario in the question; the 2025 feedback repeatedly rewards using the stimulus.
  • Answer the command word: outline gives main points only, explain gives a reason or cause, discuss gives both sides.

Same group in the syllabus: Diagnostic data · Optimisation data · Degrees of freedom · Motion constraints · Subsystem (combination of sensors, actuators and effectors) · Power, battery and material requirements · Wiring diagram · Specialist requirements for people with disability · Open-loop control · Closed-loop control · Feedback · Autonomous control · Simulation and prototype · Unit tests for control algorithms