To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 6900
6899  |  6901
Subject: 
Start_process problem
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Fri, 15 Oct 1999 00:52:54 GMT
Original-From: 
Alex Stewart <ROBOTMAN5@HOTMAILihatespam.COM>
Viewed: 
778 times
  
Hi
When I try to start a process , the code downloads fine , it runs on the
board with no errors but it only excutes the first proceess once  and none
of the others.

void main()
{
start_process(fwrd());
start_process(checkir());
start_process(checkbumpers());
}

fwrd is just fd(1) fd(2) check IR  is one checking    digital(4) an turning
the bot 80 degrees amd check bumpers checks a bumper array and moves the bot
with the same function as checkir

any suggestions?

PS
I know the code works because ive used in :

void main()
{
fwrd();
checkir();
checkbumpers();
}
I would use the above code but it taxes the processor to much for me to run
anything else ie: low level vision , maze algotrithm

thanx
-robotman



Message has 1 Reply:
  Re: Start_process problem
 
alex, each of your processes must be an indefinite loop. otherwise starting them up via start_process just runs through once. so, e.g.: void checkir() { while (1) { if (digital(4)) { /* go backward for some time */ /* turn a little */ /* go forward (...) (25 years ago, 15-Oct-99, to lugnet.robotics.handyboard)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR