View unanswered posts | View active topics It is currently Thu Aug 21, 2014 10:14 am






Reply to topic  [ 1 post ] 
natural lanuage for lego - missing implicit program end? 
Author Message
Rookie

Joined: Fri Aug 26, 2011 2:01 pm
Posts: 2
Post 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!


Fri Jan 20, 2012 4:13 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

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.