View Single Post
  #3   Spotlight this post!  
Unread 19-03-2003, 22:20
randomperson's Avatar
randomperson randomperson is offline
Assembler Freak
#0904
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Wyoming,MI
Posts: 100
randomperson is an unknown quantity at this point
Send a message via AIM to randomperson Send a message via MSN to randomperson
is that so now? hrm.. here's what I have in my "operator-controlled" portion..


if auto_button = 1 OR auton_mode = 1 then

get 10, auto_selection
select (auto_select)
case 0 to 3 'line tracking
run 6
case 4 to 7 'dead reckoning
run 7
case 8 'joy 1
run 2
case 9 'joy 2
run 3
case 10 'joy 3
run 4
case 11 'joy 4
run 5
case 12 'joy 5
run 2
case 13 'joy 6
run 3
case 14 'joy 7
run 4
case 15 'joy 8
run 5
endselect

else
gosub operator_control
endif


Not really so hard.. and it allows me to simulate auto mode by using a joystick button or something.. :-)

[edit]
Also.. this seems to be more efficient because it promotes a better transition from auto mode to user mode because of user mode is the default..
[/edit]
__________________
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

Last edited by randomperson : 19-03-2003 at 22:26.