Go to Post The more interesting arguments were around a related subject: whether it was pronounced "Wago tool" or "screwdriver". - Billfred [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2009, 16:14
Whitetail Freak's Avatar
Whitetail Freak Whitetail Freak is offline
Registered User
None #2883 (Fighting Rednecks)
Team Role: Driver
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Warroad
Posts: 3
Whitetail Freak is an unknown quantity at this point
Autonomous

Does your team have three autonomous modes for each starting position on the field?
__________________
"lets drive 'er"
  #2   Spotlight this post!  
Unread 12-02-2009, 22:34
xtreampb's Avatar
xtreampb xtreampb is offline
Lead Programmer 2642
FRC #2642 (Pitt Pirates)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Snow Hill
Posts: 21
xtreampb is an unknown quantity at this point
Send a message via AIM to xtreampb Send a message via Yahoo to xtreampb
Re: Autonomous

yall have inputs on your Driver Station correct. Can yall tell me how to program these when my team finally relizes that we need a few of those
  #3   Spotlight this post!  
Unread 13-02-2009, 17:20
Redneck's Avatar
Redneck Redneck is offline
Hacker Hick
AKA: Jamie (2.0) Moran
FRC #0599 (Robodox)
Team Role: Engineer
 
Join Date: Aug 2004
Rookie Year: 2004
Location: California
Posts: 90
Redneck is just really niceRedneck is just really niceRedneck is just really niceRedneck is just really nice
Send a message via AIM to Redneck
Re: Autonomous

Quote:
Originally Posted by xtreampb View Post
yall have inputs on your Driver Station correct. Can yall tell me how to program these when my team finally relizes that we need a few of those
The DriverStation class has GetDigitalIn() and GetAnalogIn() functions to return those inputs. However, if you're trying to set up autonomous mode selector switches you're going to need to put them on the robot itself (connected to a digital sidecar) instead of using the DS.
__________________


Which badges can you claim?
  #4   Spotlight this post!  
Unread 14-02-2009, 02:19
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Autonomous

Quote:
Originally Posted by Redneck View Post
...if you're trying to set up autonomous mode selector switches you're going to need to put them on the robot itself (connected to a digital sidecar) instead of using the DS.
No, you can use the Driver Station's inputs to select autonomous behavior. You just have to read them before Autonomous Mode begins, and save the values for use during Autonomous. (That means supplying your own RobotMain() procedure, I think.)
  #5   Spotlight this post!  
Unread 14-02-2009, 02:37
waialua359's Avatar
waialua359 waialua359 is offline
Mentor
AKA: Glenn
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Apr 2003
Rookie Year: 2000
Location: Waialua, HI
Posts: 3,306
waialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond repute
Re: Autonomous

Quote:
Originally Posted by Alan Anderson View Post
No, you can use the Driver Station's inputs to select autonomous behavior. You just have to read them before Autonomous Mode begins, and save the values for use during Autonomous. (That means supplying your own RobotMain() procedure, I think.)
Yes, and we are happy too that we didn't have to make dip switches for the different modes directly on our robot this year.
__________________

2016 Hawaii Regional #1 seed, IDesign, Safety Award
2016 NY Tech Valley Regional Champions, #1 seed, Innovation in Controls Award
2016 Lake Superior Regional Champions, #1 seed, Quality Award, Dean's List
2015 FRC Worlds-Carver Division Champions
2015 Hawaii Regional Champions, #1 seed.
2015 Australia Regional Champions, #2 seed, Engineering Excellence Award
2015 Inland Empire Regional Champions, #1 seed, Industrial Design Award
2014 OZARK Mountain Brawl Champions, #1 seed.
2014 Hawaii Regional Champions, #1 seed, UL Safety Award
2014 Dallas Regional Champions, #1 seed, Engineering Excellence Award
2014 Northern Lights Regional Champions, #1 seed, Entrepreneurship Award
2013 Championship Dean's List Winner
2013 Utah Regional Champion, #1 seed, KP&B Award, Deans List
2013 Boilermaker Regional Champion, #1 seed, Motorola Quality Award
2012 Lone Star Regional Champion, #1 seed, Motorola Quality Award
2012 Hawaii Regional Champions #1 seed, Motorola Quality Award
  #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
Closed Thread


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