An ice-skating club uses an embedded control system to manage an individual 222-metre speed skating time trial. The track is exactly 111 metres long, meaning a complete race consists of exactly 2 laps.
The control system is linked to the following peripherals:
Create an algorithm to manage the control of a 222-metre (2-lap) race using the peripherals listed.
Use a structured written description (or structured English) for your algorithm.