View unanswered posts | View active topics It is currently Fri Jul 25, 2014 4:56 pm






Reply to topic  [ 2 posts ] 
Passing Parameters to Tasks 
Author Message
Rookie

Joined: Mon Jan 10, 2011 11:39 pm
Posts: 16
Post Passing Parameters to Tasks
Hello
I doubt this will work but I really don't know exactly how the opcodes work.
Would anyone be able to tell me if this would work, its to be able to start a task while passing an integer to it.
Code:
intrinsic void StartTask(void TaskID, const short nTaskVariable)   asm(opcdStartTask,  taskNameConstant(TaskID), variable(nTaskVariable));

_________________
Regards
Stefan Andres Charsley
charsleysa@gmail.com


Tue Jan 11, 2011 12:15 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3163
Location: Rotterdam, The Netherlands
Post Re: Passing Parameters to Tasks
No, this will not work. If you want to pass info to a task, use global variables.

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


Tue Jan 11, 2011 1:49 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 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.