View unanswered posts | View active topics It is currently Wed Aug 12, 2020 3:01 pm

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

Joined: Mon Jan 10, 2011 11:39 pm
Posts: 16
Post Passing Parameters to Tasks
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.
intrinsic void StartTask(void TaskID, const short nTaskVariable)   asm(opcdStartTask,  taskNameConstant(TaskID), variable(nTaskVariable));

Stefan Andres Charsley

Tue Jan 11, 2011 12:15 am
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
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 1 guest

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.