Go to Post By "resources" do you mean money (sponsor or school), school support or permission, build facilities, or mentors? All of these require different solutions. - Carol [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 01-07-2009, 08:53
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: What are RobotC tasks?

I'm not a RobotC expert, but I believe tasks are for asynchronous activities, for multitasking. If you call a function, the current one doesn't proceed until the called one returns. If you start a task, then the current function and the new task will multitask in parallel. C doesn't have this as a language notion. It is added with libraries and is often performed with fork() or a similar function which will have #includes defining it. If the file compiles with StartTask() in it, then it is inherent in the language or the default compile includes are broad enough to include the file that defines it. I suspect it is inherent.

The warning about the assignment is probably just making sure that you meant to use = versus ==. This is a common mistake and is hard to see when simply looking at code. So I think the compiler supports the code as written, but wants to warn you that you have an assignment embedded in an expression.

Greg McKaskle
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Periodic Tasks Luke Pike NI LabVIEW 1 04-02-2009 01:14
RobotC tasks ratcateme Programming 1 07-11-2008 00:58
ROBOTC - Controller ShawnHanna Programming 1 30-01-2008 20:20
First logo and tasks Denman Rumor Mill 21 19-04-2005 11:32


All times are GMT -5. The time now is 13:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi