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