View unanswered posts | View active topics It is currently Sun Dec 21, 2014 4:33 pm






Reply to topic  [ 2 posts ] 
need help with a small program. 
Author Message
Rookie

Joined: Tue Feb 02, 2010 3:44 am
Posts: 1
Post need help with a small program.
hello,

I tried to write a smal NXC programm for a robot so he can follow a black line. But after many hours of work ther is still a little mistake, please if see the mistake correct it and e-mail to me: thomasriep@hotmail.com

task main()
{
SetSensorLight(IN_3);
OnFwd(OUT_BC, 30);
while (true)
{
if (SENSOR_3> 60);
{
OnFwd(OUT_B, 60);
Wait(1000);
until(SENSOR_3 <= 60);
OnFwd(OUT_BC, 30);
}
}
}



i hope you can help,

Thomas


Tue Feb 02, 2010 3:52 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: need help with a small program.
This is a ROBOTC forum, your question would be better posted on the NXTasy forums: http://forums.nxtasy.org/

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 Feb 02, 2010 4:25 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 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.