View unanswered posts | View active topics It is currently Thu Jul 10, 2014 1:14 am






Reply to topic  [ 3 posts ] 
RobotC advanced tutorials? 
Author Message
Rookie
User avatar

Joined: Sun Aug 23, 2009 9:18 pm
Posts: 3
Location: Puerto Rico
Post 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?

_________________
_____________________________
Thanx! freetrader0000


Thu Aug 27, 2009 11:19 pm
Profile
Expert
User avatar

Joined: Tue Oct 14, 2008 7:16 pm
Posts: 171
Location: Investigating an unidentified ship sighted in Sector 31428
Post 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.

_________________
Captain, Head programmer, School of the Arts, Silverbots Robtics Team #2890
Code:
using namespace System;
using namespace Genius;
using namespace Personality;
public ref class Nerd : Geek, IAnserable
{
    Geek::Type brainMode = Geek::Type::Programmer;
}


Fri Aug 28, 2009 5:11 pm
Profile
Rookie
User avatar

Joined: Sun Aug 23, 2009 9:18 pm
Posts: 3
Location: Puerto Rico
Post Re: ROBOTC advanced tutorials?
Ok, thanx!

_________________
_____________________________
Thanx! freetrader0000


Fri Aug 28, 2009 6:04 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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.