|
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
|