Week 4 was the start of the group producing the game. We all had a hand in adding to the code and producing different algorithms for the robot. I, (alongside a teammate), produced the countdown timer and the basic movement loops
Loops that I worked on:.
(Above) This loop is the countdown timer. It runs before anything else and tells the user when they can start the game. It also triggers the start of the game, (as the movement loops run afterwards, preventing users from starting too early and cheating)
(Below) The image below shows how the countdown loop links to the movement. The countdown runs beforehand. Once the countdown has finished and the sound stating so has played, the user is allowed to move using the Bluetooth controller. There are multiple options for the controller buttons and the various associated movements, (be it the hammer or the main motors).