View unanswered posts | View active topics It is currently Thu Aug 21, 2014 8:15 am






Reply to topic  [ 2 posts ] 
task control in robotc 
Author Message
Rookie

Joined: Thu Jul 19, 2012 11:14 am
Posts: 18
Post 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
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3188
Location: Rotterdam, The Netherlands
Post 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

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Thu Jul 19, 2012 2:56 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.