Quote:
Originally posted by gwross
I also use it in my autonomous program select code. When the robot is disabled, and the OI is in user display mode, I use a joystick button to cycle through the autonomous programs, displaying the program number on the OI for feedback.
|
Displaying a number on the OI? How is this done.. I could never find anything about that anywhere... just goes to show how well I read instruction manuals 
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}
Visit my completely useless website! http://randomperson.cjb.net
|