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

RobotC advanced tutorials?
http://www.robotc.net/forums/viewtopic.php?f=11&t=1822
Page 1 of 1

Author:  freetrader0000 [ Thu Aug 27, 2009 11:19 pm ]
Post subject:  RobotC advanced tutorials?

I was wondering if there was an advanced tutorial about RobotC, or any reference guide that has all of the keywords of RobotC. There are many keywords in RobotC that are not in many tutorials or guides. Another thing is that RobotC's structures, unions, and enumerators are not exactly the same as in C, I had to figure them out on my own. So are there any advanced reference guide or manual on RobotC?

Author:  Atlantisbase [ Fri Aug 28, 2009 5:11 pm ]
Post subject:  Re: ROBOTC advanced tutorials?

Short answer, no. There is currently no "official" book or list as such; the class notes from this page, Ma204, are about as good as it gets but it dosen't cover much of the advanced stuff, and it's based on the RobotC for Mindstorms.

As for structs, unions, and enums they can be used like so,
Code:
struct
{
    int a;
    int b;
}Type;

Type t;

union
{
    int a;
    int b;
}Type2;

Type2 y;

enum
{
    a = 1,
    b = 2,
    c = 3
};

task main()
{
    Type h;

    t.a = 1;
    t.b = 2;
    y.a = 3;
    y.b = 4;

    h.a = a;
    h.b = c;
}

This is obviously very basic and not very useful as it stands, but it gives you an idea.

If you're feeling brave you can poke through some of the files in the includes directory of your RobotC installation, that will give you some idea of the availible functions as such.

Author:  freetrader0000 [ Fri Aug 28, 2009 6:04 pm ]
Post subject:  Re: ROBOTC advanced tutorials?

Ok, thanx!

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