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
    Start_process problem —Alex Stewart
   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()); (...) (25 years ago, 15-Oct-99, to lugnet.robotics.handyboard)
   
        Re: Start_process problem —Fred G. Martin
   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)
 

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