Software Overview
Software Overview
Our strategy to win is to have full automation and only push the commits that are sufficiently close to our repo. A flow chart is shown below to illustrate the game flow.
After the game is started, the DEV first determines whether it is in the local or remote Repo and will then light up the corresponding red or blue team LEDs. Next, it aligns with the first branch and pushes the commit in to that branch. After the branch is successfully pushed, the DEV exits the branch by driving backward. The DEV rotates 90 degrees into the Repo and moves forward into the next branch. After getting into the next branch, the left/right distance sensor will determine whether the commit is close or not. The DEV only enters the branch and pushes the commit when the commit is sufficiently close enough. If the commit is too far, the DEV just moves to the next branch and senses the commit distance again.