Project

General

Profile

Revision 336

Updated wireless to use a circular buffer instead of a queue using malloc. Tested on both the computer and robots with a token ring, and was successful.

View differences:

main.c
13 13
	if (argc >= 2 && !strcmp(argv[1], "-t"))
14 14
		seconds = atoi(argv[2]);
15 15

  
16
	wl_set_com_port("/dev/ttyUSB0");
16 17
	wl_init();
18
	wl_set_channel(0xF);
17 19
	wl_token_logger_register(seconds);
20
	printf("Started.\n");
18 21
	
19 22
	struct timespec delay;
20 23
	delay.tv_sec = 0;

Also available in: Unified diff