Revision 1889 trunk/code/projects/traffic_navigation/highways.c

View differences:

highways.c
11 11
	
12 12
	case 0: // Normal Drive
13 13
		doDrive(225);
14
		int range = range_read_distance(IR2);
14
		int range = range_read_distance(IR3);
15 15
	        usb_puti(range);
16 16
       		usb_puts(" : ");
17 17
	        usb_puti(averagei);
......
20 20
       		if(range == -1){
21 21
                	return;
22 22
	        }
23

  
24 23
        	counti ++;
25 24
	        averagei += range;
26 25
		if(counti>= COUNT_MAX){

Also available in: Unified diff