Need multi tasking (4 task), how to code ?

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
AqaFlow
Posts: 34
Joined: Mon May 16, 2016 2:03 pm
Has thanked: 6 times
Been thanked: 9 times
Contact:

Need multi tasking (4 task), how to code ?

Post by AqaFlow »

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

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

Post by dazz »

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
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

Post Reply