Go to Post That is just ridonkulous. - Brandon Holley [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 10-01-2010, 10:29
Big Kid's Avatar
Big Kid Big Kid is offline
The Coach
AKA: Nick Acosta
FRC #0816 (WesTech Anomaly)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Westampton, NJ
Posts: 124
Big Kid is a jewel in the roughBig Kid is a jewel in the roughBig Kid is a jewel in the rough
Send a message via AIM to Big Kid
Re: Autonomous Program Switch

Last year, I was able to do this with ours with a few switches connected to the I/O of the Digi. Sidecar. It was somewhat simple, just setting up the programming for it was long. Besides that is works like a charm I think we had 8 possible auto. we only used 4 or 6 max.
__________________
Team 816
Student (2007-2011)
Mentor/Drive Coach (2013-)

Team 2495
Mentor (2016-)

Graduate Mech. Engineer at Lehigh University
  #2   Spotlight this post!  
Unread 10-01-2010, 10:42
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Autonomous Program Switch

Quote:
Originally Posted by Big Kid View Post
Last year, I was able to do this with ours with a few switches connected to the I/O of the Digi. Sidecar. It was somewhat simple, just setting up the programming for it was long. Besides that is works like a charm I think we had 8 possible auto. we only used 4 or 6 max.
It's actually much more convinient to do it in software.

We used one of the Joystick buttons to step through auto mode options.
They only worked when the robot was disabled in auto mode.
It saved the auto mode number in a file on the cRIO, so it remembered it next time it powerd up.

It also displayed the name of the program on the LCD display, so it will still work with the new DS's.

The beauty of this method is that if you forget to set the mode when you position the robot, you can still change it up until the time you have to step away from the driver station.

I wrote a white paper last year....

http://www.chiefdelphi.com/media/papers/2209
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
  #3   Spotlight this post!  
Unread 10-01-2010, 15:03
Big Kid's Avatar
Big Kid Big Kid is offline
The Coach
AKA: Nick Acosta
FRC #0816 (WesTech Anomaly)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Westampton, NJ
Posts: 124
Big Kid is a jewel in the roughBig Kid is a jewel in the roughBig Kid is a jewel in the rough
Send a message via AIM to Big Kid
Re: Autonomous Program Switch

my thing with it was that we didn't know you could program the DS at the time, I didn't until comp. so it ended up being hardwired. Not to mention could you program the DS with LabVIEW? But besides the point that is. Still Auto. switches are possible
__________________
Team 816
Student (2007-2011)
Mentor/Drive Coach (2013-)

Team 2495
Mentor (2016-)

Graduate Mech. Engineer at Lehigh University
  #4   Spotlight this post!  
Unread 10-01-2010, 15:30
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Autonomous Program Switch

In addition to all of the approaches already listed, the new DS also supports virtual I/O. If you are running the DS without an I/O board attached, the Compatible/Simple I/O page actually lets you set the values of the analog and digitals using the mouse. The values are saved with the DS until you change them again or connect the I/O HW, and they are latched during auto-enabled. Hopefully this means you can have inputs to the autonomous without necessarily needing a soldering iron.

Be sure to update the DS SW before playing with this too much as it changed between the laptop version and the update version.

Greg McKaskle
  #5   Spotlight this post!  
Unread 10-01-2010, 15:39
jsasaki's Avatar
jsasaki jsasaki is offline
Registered User
AKA: Jun Sasaki
no team
Team Role: Alumni
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Hawaii
Posts: 210
jsasaki has a spectacular aura aboutjsasaki has a spectacular aura aboutjsasaki has a spectacular aura about
Re: Autonomous Program Switch

In 09 we had 2 SPST submini slide switches wired to the DSC with 2 PWM's and had 4 different autonomous programs (2 up, 2 down, left up right down, right up left down) accordingly to where we were placed in the field. So its very possible

See you in Arizona
Good luck teams!
  #6   Spotlight this post!  
Unread 11-02-2010, 19:58
Dennis Erickson Dennis Erickson is offline
Registered User
FRC #1510
 
Join Date: Mar 2009
Location: Beaverton
Posts: 1
Dennis Erickson is an unknown quantity at this point
Red face Re: Autonomous Program Switch

If you want a very simple solution you can use the USER1 switch on the cRIO. Using the "FRC ReadSwitch.vi" will return its position. This is a very small switch and you should be carefull when using it. Do not move the other switches in the area.
  #7   Spotlight this post!  
Unread 12-02-2010, 15:00
Heath's Avatar
Heath Heath is offline
Registered User
AKA: Kevin Heath
FRC #2840 (PCDS Robotics)
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Phoenix, AZ
Posts: 4
Heath is an unknown quantity at this point
Re: Autonomous Program Switch

Last year, our team made a box with three switches that we connected to the digital IO sidecar that gave us more possible autonomous modes than we actually used. However, we discovered a little to late that there was actually a pre-made block to determine your starting position in the WPI robotics library. It may still be applicable this year.
__________________
"There is no spoon"

Team 2840
  #8   Spotlight this post!  
Unread 12-02-2010, 15:11
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 Program Switch

Quote:
Originally Posted by Heath View Post
...there was actually a pre-made block to determine your starting position in the WPI robotics library.
It only tells you which spot in the alliance station your controls are assigned to. It doesn't have anything to do with where on the field your robot starts.
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 Controller Board Switch merybar Technical Discussion 9 25-03-2008 08:04
Autonomous Controller Board Switch merybar General Forum 2 27-01-2008 12:54
pic: Autonomous Mode Switch Gary Bonner Robot Showcase 4 18-02-2005 21:58
Using a switch before autonomous operation KZos550 Programming 11 04-02-2003 19:12
Autonomous Kill Switch UCGL_Guy Programming 8 15-01-2003 17:39


All times are GMT -5. The time now is 12:31.

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