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

natural lanuage for lego - missing implicit program end?
http://robotc.net/forums/viewtopic.php?f=1&t=4152
Page 1 of 1

Author:  JEL_PHS [ Fri Jan 20, 2012 4:13 pm ]
Post subject:  natural lanuage for lego - missing implicit program end?

It appears that robotc natural language is missing the implicit program end when the last statement is completed. A simple program such as:

task main()
{
motor[motorB] = 100;
}

when run under the platform type of "Natural Language NXT" runs indefinitely. Compile the exact same program with a platform type of "LEGO mindstorms NXT" and it motor barely moves before the program ends.

Is this intentional? Are the commands spawned into tasks that are not stopped prior to the end of the program execution? It is going to create an obstacle taking kids from Natural Language to RobotC as their programs will not terminate the same. Thoughts on how to address this with the students and what code to add to the end of each program to get behavior the same in both robotc and Natural Language would be appreciated!

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