View unanswered posts | View active topics It is currently Sat May 23, 2015 12:14 am






Reply to topic  [ 4 posts ] 
ROBOTC Natural language programming - troubleshooting HELP! 
Author Message
Rookie

Joined: Thu Jun 30, 2011 10:55 am
Posts: 1
Post ROBOTC Natural language programming - troubleshooting HELP!
Does anyone know what this means? **Error**:Executable statements not valid in 'main' declaration block


Thu Jun 30, 2011 10:58 am
Profile
Site Admin
Site Admin

Joined: Mon Jun 08, 2009 4:50 pm
Posts: 70
Post Re: ROBOTC Natural language programming - troubleshooting HELP!
Please post your code so that we can help, but usually that means that you have some commands out side of task main that belong inside:

Code:
forward();    // <--
untilTouch(); // <--------these three belong inside task main.
stop();       // <--

task main()
{
  // they should be here
}

_________________
Bence Feher

Undergraduate Intern - NREC, Robotics Academy
ROBOTC - Testing/Documentation/Developer

Computer Science, Japanese, East Asian Studies
University of Pittsburgh, Konan University 甲南大学


Thu Jun 30, 2011 11:14 am
Profile
Rookie

Joined: Mon Feb 23, 2015 8:56 am
Posts: 2
Post Re: ROBOTC Natural language programming - troubleshooting HE
Hey, i'm also getting this error, suggestions? also if there is anything else wrong please mention it!



repeat(forever)
{if (true)
(SensorValue(bumpswitch) ==1);
turnLEDOn(led);
if (true)
{(SensorValue(bumpswitch) ==0);
(turnLEDOff(led));}}




Thanks!


Mon Feb 23, 2015 9:02 am
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3502
Location: Rotterdam, The Netherlands
Post Re: ROBOTC Natural language programming - troubleshooting HE
Is that the entire program?

= 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]


Mon Feb 23, 2015 9:08 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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.