Wait Until a Certain Time Command

Hi,

I am currently writing an autonomous that will descore a ball in the center row. However, I don’t want to mess up someone’s auton and be dqed. I cycle a goal before using a vision sensor so I have no clue what time it will be. Is the a way to set a timer at the start of the program and make a code something like this?

while (timer < 14) {
wait(0.1, sec);
}

Yes, there’s a way to do that! This post should help you out.

7 Likes

I will give that a try. Thanks!

1 Like