View unanswered posts | View active topics It is currently Fri Apr 18, 2014 2:21 am






Reply to topic  [ 3 posts ] 
Programming question of RobotC 
Author Message
Rookie

Joined: Sun Dec 02, 2007 3:11 am
Posts: 3
Post Programming question of RobotC
I am a newbee to RobotC, and I would like to ask how to let the robot perform 2 actions at the same time?
For example: While the robot is moving, the grabber will keep open and close.


Sun Dec 02, 2007 3:16 am
Profile
Expert
User avatar

Joined: Fri Nov 09, 2007 4:51 am
Posts: 121
Location: Hungary, Europe
Post task control
RobotC on NXT can run more tasks concurrently.
Within RobotC click on the "TASKS" item on help bar.

Help file on your computer:

C:\Program Files\Robotics Academy\ROBOTC for Mindstorms\RobotC Documentation\NXT\Task Control.htm

Example program with simple task control:

C:\Program Files\Robotics Academy\ROBOTC for Mindstorms\Sample Programs\NXT\NXT Task Test.c

More real-life examples are listed among the bluetooth sample programs.


Sun Dec 02, 2007 6:27 am
Profile
Rookie

Joined: Sun Dec 02, 2007 3:11 am
Posts: 3
Post Re: task control
elemes wrote:
RobotC on NXT can run more tasks concurrently.
Within RobotC click on the "TASKS" item on help bar.

Help file on your computer:

C:\Program Files\Robotics Academy\ROBOTC for Mindstorms\RobotC Documentation\NXT\Task Control.htm

Example program with simple task control:

C:\Program Files\Robotics Academy\ROBOTC for Mindstorms\Sample Programs\NXT\NXT Task Test.c

More real-life examples are listed among the bluetooth sample programs.


This is really useful for me, thx very much~~


Mon Dec 03, 2007 11:13 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 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.