ROBOTC.net forums
http://www.robotc.net/forums/

ROBOTC Natural language programming - troubleshooting HELP!
http://www.robotc.net/forums/viewtopic.php?f=14&t=3354
Page 1 of 1

Author:  snichol [ Thu Jun 30, 2011 10:58 am ]
Post subject:  ROBOTC Natural language programming - troubleshooting HELP!

Does anyone know what this means? **Error**:Executable statements not valid in 'main' declaration block

Author:  bfeher [ Thu Jun 30, 2011 11:14 am ]
Post subject:  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
}

Author:  Skittelzittel [ Mon Feb 23, 2015 9:02 am ]
Post subject:  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!

Author:  mightor [ Mon Feb 23, 2015 9:08 am ]
Post subject:  Re: ROBOTC Natural language programming - troubleshooting HE

Is that the entire program?

= Xander

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/