Millisecond problem

Hi everyone from Turkey.

i'm using Ard uno r3 and Sparkfun pwm shields.

i must drive 16 servo same time. its not problem. but there is some "if then else".

if (a==1) {tlc_setServo(0, 90);Tlc.update();a=2;} if (b==1) {tlc_setServo(1, 180);Tlc.update();b=2;} if (c==1) {tlc_setServo(2, 20);Tlc.update();c=2;} . . .

if a=1 and b=1 same time "if (b==1) tlc_setServo(1, 180);Tlc.update();" this code is not working. i think i must put some delay between two Tlc.update(). is it true? but i can't do it because my system is working very fast. what can i do? Any idea....

Have a big logic block where you set all your servo positions, and then one Tlc.update at the end.

macegr:
Have a big logic block where you set all your servo positions, and then one Tlc.update at the end.

Good idea. Thanks. i think this will solve the update problem.