Thread: Multitasking
View Single Post
  #1   Spotlight this post!  
Unread 11-02-2013, 22:28
JCrusoe JCrusoe is offline
Jacque Crusoe
FRC #3880 (Tiki Techs)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Hawaii
Posts: 5
JCrusoe is an unknown quantity at this point
Multitasking

After a good hour or so of reading through documentations and any other related page I could find, creating new tasks has me stumped. I'm not sure exactly where to put the line of code the documentation shows as an example, or where to point the function to (do I just leave it as FUNCPTR?).
Code:
Task myTask("taskname", (FUNCPTR) functionToStart)
Basically I'm extremely confused haha. I've tried many off the wall things like creating a new object that is a task, and then modifying that line to put in the initialisation. If someone could point me in the right direction I would be eternally grateful =)

Jacque
Reply With Quote