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

Passing Parameters to Tasks
http://robotc.net/forums/viewtopic.php?f=11&t=2908
Page 1 of 1

Author:  charsleysa [ Tue Jan 11, 2011 12:15 am ]
Post subject:  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));

Author:  mightor [ Tue Jan 11, 2011 1:49 am ]
Post subject:  Re: Passing Parameters to Tasks

No, this will not work. If you want to pass info to a task, use global variables.

- Xander

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