1. The robot starts from the beginning of the track indicated from S1.
2. Now robot should detect the presence or absence of mirror giving the information in form of binary number .Also the mirror will be exclusively placed on left or right side i.e. means presence of mirror on right side indicates ,it will be absent on left side.
for example:
left
1) mirror absent
2) mirror absent
3) mirror present
4) mirror present |
right
mirror present
mirror present
mirror absent
mirror absent |
0 (MSB)
0
1
1 (LSB) |
therefore number obtained in binary form is 0011= three ( 3 ) in decimal form so that robot track the number three ( 3 ) on seven segment track.
3. Robot must enter the valid segments only, if the robot enters any invalid segment it will be placed at start again and time count will continue.
4. Similarly after tracking the number indicated by S1, robot should follow same in case of S2: starting from S2.
5. Incase of S2 , robot have to follow same procedure first of all it should obtain the number from S2 (e.g. 4) and track it on the seven segment track
6. After travelling all the valid segments the robot should stop indicating the success of the mission. |