[nxc]Multitasking issue.. :(
Hello everyone !
So I would like to do multitasking on my robot (lego mindstorm), and for that I'll need multitasking later, so I need to know how to do it, I know that you're against multitasking but later I'd like to do a real complex robot (not for now of course, I'm beginning, but later in this year I hope or at worst, next year), so that's why I need multitasking.
I don't understand how it really works... For example :
If I do that, the robot is spamming like hell (the variable reaches 4000 in less than 10 secondes...)
So I did that :
And this time it works only one time... What...? (the variable folie reach 34, so +1 + 30 + 3....) I don't even understand because when I read the code, it reads the startask but in the code, no reason to do it only one time, there is a while(1) lol. Really strange.
May someone help me ? Why is it doing that ? And how to do this simple multitask ?
Thanks for help in advance, good bye!
PS : By the way, it's off-topic but I'm using the robot virtual worlds and I need to program in nxc, so that's why I added this library .(nothing important anyways)