|
Page 1 of 1
|
[ 2 posts ] |
|
| Author |
Message |
|
robusto
Rookie
Joined: Thu Jul 19, 2012 11:14 am Posts: 18
|
 task control in robotc
I have just started investigating tasks and cannot find any documentation whatsoever (either in the robotc help or online) on the following:
taskStateRunning taskStateStopped taskStateSuspenededWasRunning
etc.
e.g. everything you get as a hint after typing "task" into the code window.
Can anyone point me in the right direction?
Cheers,
Rob
|
| Thu Jul 19, 2012 11:28 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2864 Location: Rotterdam, The Netherlands
|
 Re: task control in robotc
There is no documentation on this stuff. It is generally not really needed. I've only ever used it once in my driver suite for the Firgelli Linear Actuators. To be honest, it's better to use booleans to stop and start tasks (ie let them run their course and exit in an orderly fashion or simply wait until a boolean is true again), rather than killing and restarting them and querying their status to ensure they're dead.
I've learned about these things simply through experimentation. If you want, you can take a look at the FLAC driver in my suite.
- Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Thu Jul 19, 2012 2:56 pm |
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: parkway and 6 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
|
|