Project

General

Profile

Revision 1882

random character in one of those files...and the other needed a 7 instead of a 3...
=D

View differences:

trunk/code/projects/traffic_navigation/validTurns-test.c
24 24

  
25 25
int barcode3 = (DOUBLE_T<<2)+(TMIDDLE);
26 26
if (validateTurn(barcode3, IUTURN)==IUTURN) orb1_set_color(GREEN);
27
s
27

  
28 28
delay_ms(100);
29 29
orb1_set_color(PURPLE);
30 30
delay_ms(50);
trunk/code/projects/traffic_navigation/validTurns.c
41 41
*/
42 42

  
43 43
int getCrossType(int barcode){
44
	int crosstype = (barcode>>2)&3;
44
	int crosstype = (barcode>>2)&7;
45 45
	return crosstype;
46 46
}
47 47
int getCrossPos(int barcode, int max){

Also available in: Unified diff