View unanswered posts | View active topics It is currently Wed Jul 30, 2014 9:53 pm






Reply to topic  [ 3 posts ] 
waitForStart() Doesn't work AT ALL 
Author Message
Rookie

Joined: Sun Nov 20, 2011 8:10 pm
Posts: 2
Post waitForStart() Doesn't work AT ALL
Running ROBOTC 3.0.4

In FTC Templates, and in my own work, if I add the "waitForStart();" procedure I get this error message:

**Error**:Undefined procedure 'waitForStart'

Yes, I have included the JoystickDriver.c and it is the default JoystickDriver.c that I have not tampered with. This is my teams first year using ROBOTC

I'm an experienced gaming C++ programmer so if your suggestion is for me to check anything on my end, I have already done it. I'm not sure what could be causing it.

I have called it right before while(true) in the main task. It is the only error I get. Any ideas?


Sun Nov 20, 2011 8:14 pm
Profile
Rookie

Joined: Sun Nov 20, 2011 8:10 pm
Posts: 2
Post Re: waitForStart() Doesn't work AT ALL
Found the problem, had the compiler target set to Virtual Worlds. Didn't know that could make such a big difference.


Sun Nov 20, 2011 8:27 pm
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:44 am
Posts: 439
Location: Pittsburgh, PA
Post Re: waitForStart() Doesn't work AT ALL
The Compiler Target tells ROBOTC where you're sending the code. If you set it to physical robot it will communicate through the physical communications port on your computer in order to get the code to your robot. Virtual Worlds will ignore that port.

_________________
Vu Nguyen
Software Training Development Team | Webmaster
Need more support? Use the ROBOTC Ticketing system

Robotc.net| Robomatter Store | Robotics Academy | CS2N


Mon Nov 21, 2011 10:21 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.