Project

General

Profile

Revision 1891

Merged highway code into main to test switching states between intersection and highway. Highway code doesn't behave as it should, but I may be calling it wrong. Switching states is currently based on button1, until bar codes get integrated. State switches are weird, and don't aways go into the correct state or wait for the button.

View differences:

highways.c
15 15
	case 0: // Normal Drive
16 16
		{
17 17
		int theCode = doDrive(225);
18
		if(theCode != NORMAL && theCode >= 0)
18
/*		if(theCode != NORMAL && theCode >= 0)
19 19
			return theCode;
20
		int range = range_read_distance(IR2);
20
*/
21
			int range = range_read_distance(IR2);
21 22
	        usb_puti(range);
22 23
       		usb_puts(" : ");
23 24
	        usb_puti(averagei);

Also available in: Unified diff