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

task control in robotc
http://robotc.net/forums/viewtopic.php?f=1&t=4683
Page 1 of 1

Author:  robusto [ Thu Jul 19, 2012 11:28 am ]
Post subject:  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

Author:  mightor [ Thu Jul 19, 2012 2:56 pm ]
Post subject:  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

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