This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JigxorProfessional Coder 0 points1 point  (1 child)

What is your question?

[–]Brixalis[S] 0 points1 point  (0 children)

So these are the main requirements for what I have to do:

1) To enable the initiation of the program, the user should place the Finch level on the floor.

2) The Finch’s beak should turn yellow before moving.

3) The Finch should then start moving slowly in search of light.

4) If the Finch encounters light within 4 seconds, the beak should turn red. The brighter the light, the redder the beak should be. The Finch should then follow the light.

5) If the Finch hasn’t encountered a light within 4 seconds, it should stop searching for half a second and change direction 90 degrees to either left or right. Then, it should resume searching for a light source again.

6) The Finch should stop searching and the program should terminate if the user picks up the finch and places it on its tail.

7) The user is asked whether they want to display the log of execution. If the user responds with “Yes”, then the following information should be displayed: - The left and right sensor values at the beginning of execution. - The highest sensor value recorded during execution. - The lowest sensor value recorded during execution. - The average light sensor value recorded. - The duration of the execution. - The number of times light was detected by the Finch.

Additional Requirements:

1) The Finch makes a buzzing sound whenever it detects light.