We tried to compile our autonomous programs, but robotC gives us an error saying undefined procedure. The problem is with the "waitForStart();" command. We type it exactly like that and doesn't work. Any ideas of what the problem is?

Tue Dec 10, 2013 2:11 pm

JohnWatson

Site Admin

Joined: Thu May 24, 2012 12:15 pmPosts: 722

Re: Wait For Start Command

Can you post your code using the [code] tags? This will help us determine what the root cause of this issue is.

There are a couple common causes of this issue that you can check in the meantime. First, check to make sure that your Platform Type (under the Robot menu) in ROBOTC is set to LEGO NXT + TETRIX/MATRIX and not just LEGO MINDSTORMS NXT.

Next, check to make sure that the 'Compiler Target' (also under the Robot menu) is set to 'Physical Robot' and not 'PC-Based Emulator' (if applicable).

Please let us know if either of these solve the issue for you, and if not, please make sure to post your code (using the [code] tags) and we will be more than happy to assist you further.

What do you mean "code tags"? And yes, all the other settings are correct as you stated.

Tue Dec 10, 2013 4:12 pm

MHTS

Guru

Joined: Sun Nov 15, 2009 5:46 amPosts: 1523

Re: Wait For Start Command

When you reply the post, there is a "button" that says "Code". If you click that it will generate a code tag in your reply. If you put your code in between these code tags, the indentation will be preserved.

Tue Dec 10, 2013 4:17 pm

aaronmk1

Rookie

Joined: Tue Oct 15, 2013 9:44 pmPosts: 8

Re: Wait For Start Command

Thank you, I will post my code before 5 today.

Tue Dec 10, 2013 4:35 pm

aaronmk1

Rookie

Joined: Tue Oct 15, 2013 9:44 pmPosts: 8

Re: Wait For Start Command

Here is the code. (Above the const int's is the motor and sensor setup code)

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum