Go to Post An innovative strategy based off of good scouting beats a #1 alliance any day. - rufu5 [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
  #3   Spotlight this post!  
Unread 01-07-2009, 08:25
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: What are RobotC tasks?

Yeah, that's the standard C way of returning values, just didn't know if it worked or not (haven't had time to reload the firmware on my VEX robot and do debugging yet). Thanks for letting me know!

After doing a little bit of research, it looks like they have extensively modified the compiler to slim it down. For one thing, there's no pointers, which is a standard C concept available in all real C compilers. This leads me to believe that they have built "task" into the compiler itself and not declared it anywhere. Oh well, I was just wondering if I could find its declaration to figure out its properties a little better (i.e. why you have to use StartTask() and StopTask() instead of just calling it like a function).

After modifying and compiling a fairly complex program I wrote in WPILib and then in Default code onto RobotC, it looks like most of the standards work except for pointers. It gave me a warning about embedding a command inside an if statement ( if( (wheel[0] = forward+...)>127) ), so I'll have to make sure that it works.

And something that's rarely done in C, but does have to happen occasionally is that multiple C files are included into the project via #include "..." (instead of just headers). You just have to include the other C files into the main project file. Is this just a limitation of the trial version, or something inherent to RobotC as a whole? Just curious, I like to know as much about a programming language/environment as I can before I start teaching it to other people.

Thanks for the information!
Aaron
 


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