It must be a stupid question... but I just can't get it !!
In WebbotLib... when I use delay_ms(5000); or clockWaitms(5000); in the main loop .... it delays for 5 seconds in the beginning itself, and continues with the programming without any delays.
That actually makes sense to me because appControl loop, loops continuously no matter what the code is... so whenever I use delays, it adds up, and delays when I switch the Axon On.
If that is normal, then how to use delays in order to do programming step by step having different delays in between, for example:
act_setSpeed(&S1,p1);
act_setSpeed(&S2,p2);
p1 = 50;
delay_ms(2000);
p1 = 0;
delay_ms(1000);
p2 = 50;
//etc..
I have been improvising all this time by using the clockGetus time ...I am doing it through 'commands at specific time' ...but now its getting complicated and I need to use 'delays' in between commands.
Thanks.