View unanswered posts | View active topics It is currently Mon Apr 21, 2014 1:14 am






Reply to topic  [ 3 posts ] 
Need Help!!! 
Author Message
Rookie

Joined: Mon Aug 06, 2012 10:09 pm
Posts: 1
Post Need Help!!!
We are trying to programme our nxt robot on RobotC, and we are trying to use untillTouch but it does not like it, it says "**Error**:Undefined procedure 'untilTouch'."
Can anyone help?? thanks


Mon Aug 06, 2012 10:11 pm
Profile
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post Re: Need Help!!!
That is a NXC command. Here's how you'd do it in RobotC.

Code:
while(SensorValue(SensorPort) == 0);

_________________
A.K.A. inxt-generation
Self-proclaimed genius, and future world dominator.
My Brickshelf Folder
"Don't they teach recreational mathematics anymore?" - The Tenth Doctor
Bow down to Nikola Tesla, King of the Geek Gods.


Mon Aug 06, 2012 10:51 pm
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3107
Location: Rotterdam, The Netherlands
Post Re: Need Help!!!
It's a valid "Natural Language" command. Are you sure the platform is set correctly?
Verify using the image below.
Attachment:
2012-08-07_06-34-23.png
2012-08-07_06-34-23.png [ 21.35 KiB | Viewed 1518 times ]

Regards,
Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Tue Aug 07, 2012 12:34 am
Profile WWW
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.