Thread: Tasks in C++
View Single Post
  #2   Spotlight this post!  
Unread 25-02-2013, 21:46
PaulDavis1968's Avatar
PaulDavis1968 PaulDavis1968 is offline
Embedded Software/Systems Engineer
AKA: Master of Complexity
FRC #2053 (TigerTronics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Endicot NY
Posts: 91
PaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nice
Re: Tasks in C++

Quote:
Originally Posted by bob.wolff68 View Post
Here's our team's task-creation class. Basically, you just implement your own Run() when inheriting from it. Credit to 254 for the genesis of this code.

https://github.com/bobwolff68/FRCTea.../jankyTask.cpp

And here's a project which uses the task - the team created this in order to better understand how multi-tasking works. Take a look and ask questions if you have any.

https://github.com/bobwolff68/FRCTea...nkyTaskTestjig

Bob
Am I missing something?

If your not doing this:

http://stackoverflow.com/questions/1...-calling-rules

Than how are you calling the jankyTask Constuctor without arguments in your example code ?

Last edited by PaulDavis1968 : 25-02-2013 at 22:04.
Reply With Quote