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 / 7330
7329  |  7331
Subject: 
multitasking support.
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Thu, 20 Jan 2000 19:28:19 GMT
Viewed: 
1133 times
  
i'm running IC version 2.82. i'm not too sure how do i get the handyboard to
do multi tasking on three routines:

1. control the velocity of the robot (i called the function 'dc')
2. steer (i'm steering with a front wheel)
3.identify strips on the floor to pop balloons. routine is called 'servo'

i wrote my main program as below. the funny thing is, it wants me to press the
start button to move from one routine to another. this is not right. what is
the correct way of using 'start_process( )'?


void main()
{  int pid1, pid2, pid3;


   start_press();

  while(stop_button()==0)
  {pid1=start_process( steering(), 10, 100 );
  pid2=start_process( dc(), 10, 100 );
  pid3=start_process( servo(),5, 50 ); */
   }


all_off();
}



1 Message 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