Project

General

Profile

Revision 912

Robot sends updates 50 times per second. Robot remote control program doesn't mess up terminal upon exit.

View differences:

test.c
37 37
        printf("fopen error\n");
38 38
        return 1;
39 39
    }
40
    initscr();
40
    WINDOW* win = initscr();
41 41
    printf("Beginning: robot=%d\r\n", robot);
42 42
	wl_set_com_port("/dev/ttyUSB0");
43 43
	wl_init();
......
89 89
        }
90 90
	}
91 91
	fclose(file);
92
	delwin(win);
93
	endwin();
94
	refresh();
92 95
	return 0;
93 96
}
94 97

  

Also available in: Unified diff