Go to Post And, just for the record, dlavery is on my mental ignore list from September until January if the thread involves the word "hint" at all. - Andrew Schreiber [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
  #6   Spotlight this post!  
Unread 14-02-2009, 07:35
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Autonomous

Quote:
Originally Posted by Alan Anderson View Post
That means supplying your own RobotMain() procedure, I think.
no, you can say something like this:
Code:
class RobotDemo: public SimpleRobot
{
        DriverStation *ds;
int pos;
    public:
        RobotDemo()
        {
             ds = DriverStation::GetInstance();
             if (ds->Get...
             //switch code here and assign pos 1,2, or 3
        }

        void Autonomous()
        {
             switch(pos)
{
case 1:
              Auto1();
...
}
        }
        void Auto1()
        {

        }
        void Auto2()
        {

        }
        void Auto2()
        {

        }
}
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
 


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
Autonomous Rafi Ahmed Rules/Strategy 13 08-01-2007 01:34
Autonomous hedgehogger Programming 1 22-01-2004 18:29
Autonomous danielkitchener Rumor Mill 3 03-01-2004 01:08
R.A.G.E. Autonomous? DarkJedi613 Regional Competitions 7 17-03-2003 21:33
Autonomous Jestin Hashop Rules/Strategy 2 11-02-2003 19:24


All times are GMT -5. The time now is 21:48.

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