Project

General

Profile

Revision 1517

Added by Alex Zirbel over 14 years ago

Updated circle formation behavior

View differences:

circle.c
68 68
	int dist = 0;
69 69
	int temp = 0;
70 70
	int counter = 0;
71
	int correct = 0;
71
//	int correct = 0;
72 72
	
73 73
	while(dist != RADIUS)	//puts the robots in the given distance RADIUS
74 74
	{
......
93 93
			break;
94 94
			
95 95
			}	// stop within the dead zone: it knows it is in the dead zone if it hits +- 15 from RADIUS 3 times*/
96
		bom_refresh(BOM_ALL);
97
		int top = bom_get_max();
98
		while(top!=4)
99
		{
100
			search();
101
			bom_refresh(BOM_ALL);
102
			top = bom_get_max();
103
		}	
96 104
		
97 105
		if ( dist<(RADIUS+30) && dist>(RADIUS-30)) {	// the dead zone
98 106
			orb_set_color(RED);

Also available in: Unified diff