I mean not need advice for full coding, just want to know how to multitasking ?
If Using macro call ? Then what to do with delay function ? Because if have delay in a macro, then other macro call will be delayed as well ??
Interrupt ?? as sensor must sense all the time ??
Please advice,
If to make a robotic buggy run follow reflective narrow foil tape with,
1. On top light sensor to control line-1 of Led blinking rate.
2. Sound sensor to control line-2 of Led blinking rate.
3. Left foil edge sensor to control speed of front left wheel speed.
4. Right foil edge sensor to control speed of front right wheel speed.
(function 3 and 4 to turn Buggy left or right to follow the line)
As all 4 function need to do simultaneously, but processor code run sequential, in otherword need multi tasking (4 task) then how to code ?
Thanks.
Amrat
Need multi tasking (4 task), how to code ?
-
- Posts: 1314
- Joined: Sun Jan 15, 2012 3:15 pm
- Has thanked: 474 times
- Been thanked: 458 times
- Contact:
Re: Need multi tasking (4 task), how to code ?
Hi
Have a look at the following page has 2 examples that may or may not help
http://www.matrixtsl.com/wiki/index.php ... ec2007b406
Regards
Dazz
Have a look at the following page has 2 examples that may or may not help
http://www.matrixtsl.com/wiki/index.php ... ec2007b406
Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php