Wednesday, November 8, 2017

Module 11

Individual google docs:

Lucinda Cahill- https://docs.google.com/document/d/1_eQkWvifmf-RLR78NE23NG_6Q7bmZ4li8I4ai5dEHc0/edit?usp=sharing

Nate Barone- https://docs.google.com/document/d/1_3Tsz8wh2wxHZNX9B_NZHYQocRvexIPb-oRduesSGGE/edit?usp=sharing

Ryan Monroe: https://docs.google.com/document/d/1E4D7NsC0SNoI7c26BpLpRlcFyhlEsyxhakdgteY_0Gw/edit

Stephen Bader: https://docs.google.com/document/d/1lNihhzg0g_b2ayTtW3lu4Alm3P_T9GIrFNnXkUtv8is/edit?usp=sharing


New Design: 


Strategy: Our robot will firstly search for a white line (outer ring of arena), if it detects the white line it will quickly reverse, spin around and proceed forward. If it does not detect the white line (anywhere else in the arena) it will search for objects in front of the infrared sensor that are less than 50 units away. If an object is detected within 50 units it will move forward towards that object at full speed (100 units). This strategy will enable our robot to hopefully push the other robot out of the arena. If the robot does not sense an object within its proximity threshold it will check its touch sensor, which is located on its back, to search for its next set of instructions. If it does sense that it is being pushed from behind (by another robot) it will turn sharply with both treads at +100 and -100 respectively. This will allow the robot to move out of the path of the attacking robot. If it does not sense anything touching it from behind it will spin in one spot to locate the opposition robot. If it sees a robot with its infrared sensor it will begin at that part of the code again.

Step 5:
What Went Well and What Went Wrong
Our robot was very good at keeping itself inside the ring. On top of this, our robot also was good at turning and pushing of other robots. Our main problem is that our code starts it out spinning, thus allowing the other robots free access to push it from behind. This is simply changed by adding a delay to our code so that it faces forward while the other robot it charging forward at us.

Next Step Next Week
Firstly, we must change a couple of our values inside of our functions. This issue was something expected as we are unsure of the relation of the units inside the program to distance of the arena. Outside of this, we also are going to add a code to the start as our beginning is a struggle. Our code was more aimed at the mid-game of the fight and we forgot about the starting line fight.

No comments:

Post a Comment