Go to Post CD is a forum provided by a group of people. You use it with their permission. Don't like it? Don't use it. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2010, 13:35
ninjasquid ninjasquid is offline
Registered User
FRC #3299 (The Warehouse Crew)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Minnesota
Posts: 10
ninjasquid is an unknown quantity at this point
Pre match switch for autonomous

For the autonomous mode, our team was looking at putting a manual switch on the robot that we could flip before the match after discussing with our alliance partners about what starting position we would be in.

what would be the best way to do this?
what kind of a switch would we use?
where would we plug it in?
and would it be possible to flip the switch before the match, before the robot is turned on, and have labview read the value or would the program zero out the current position?

Thanks much!
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2010, 15:58
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,534
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Pre match switch for autonomous

The best way to do it would be to utilized the disabled area in your programming and feed back onto your driver station. Your joysticks work just fine in disabled - the only thing not working is the motor outputs.

Therefore you can use the buttons on your joysticks to select your auton after you power everything up, from your driver station.
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2010, 20:04
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: Pre match switch for autonomous

You have a number of digital inputs available on the side car in the robot. You can wire switches to these inputs and the robot will read them reliably all of the time. You can also use inputs at the driver's station, but these inputs will be adversely affected during autonomous. You have to read and save the values during the disabled period before autonomous is started for later use during autonomous. In past years one has had to be very careful about how you read switches prior to autonomous, to make sure that you get correct values.

Eugene
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2010, 20:48
Chris is me's Avatar
Chris is me Chris is me is offline
no bag, vex only, final destination
AKA: Pinecone
FRC #0228 (GUS Robotics); FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Glastonbury, CT
Posts: 7,745
Chris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond repute
Send a message via AIM to Chris is me
Re: Pre match switch for autonomous

A set of switches on the side car will get the job done. Since there is no interaction in auton, there's no reason you need to wait until your opponents place robots to decide your autonomous mode, the main reason to put the switches on the DS.

You can use a simple binary system to get 2^x auto modes with x switches. Or if you want to configure something in your auto mode, you can use a few switches to set a value from, say, 0 to 15. No idea why you'd want to do THAT though...
__________________
Mentor / Drive Coach: 228 (2016-?)
--2016 Waterbury SFs (with 3314, 3719), RIDE #2 Seed / Winners (with 1058, 6153), Carver QFs (with 503, 359, 4607)
Mentor / Consultant Person: 2170 (2017-?)
.
College Mentor: 2791 (2010-2015)
-- 2015 TVR Motorola Quality, FLR GM Industrial Design -- 2014 FLR Motorola Quality / SFs (with 341, 4930)
-- 2013 BAE Motorola Quality, WPI Regional #1 Seed / Delphi Excellence in Engineering / Finalists (with 20, 3182)
-- 2012 BAE Imagery / Finalists (with 1519, 885), CT Xerox Creativity / SFs (with 2168, 118)
Student: 1714 (2009) - 2009 MN 10K Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2010, 20:48
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Re: Pre match switch for autonomous

we used this last year for lunacy we had the switch being the right wheel on the joystick
<30 = near starting
>30 and <70 = middle
>70 = far
Reply With Quote
  #6   Spotlight this post!  
Unread 07-02-2010, 00:34
ninjasquid ninjasquid is offline
Registered User
FRC #3299 (The Warehouse Crew)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Minnesota
Posts: 10
ninjasquid is an unknown quantity at this point
Re: Pre match switch for autonomous

Quote:
Your joysticks work just fine in disabled
Quote:
we used this last year for lunacy we had the switch being the right wheel on the joystick
<30 = near starting
>30 and <70 = middle
>70 = far
So it sounds as though there is a time before autonomous mode begins where you can set the throttle on the joystick without it being zeroed out, am i correct?

Where is there more details on the beginning, "disabled" time, and autonomous mode in the FRC Rules? I searched quite a while and could only find rule <G02> which just states that: "The AUTONOMOUS PERIOD is the 15-second period at the start of the MATCH. DRIVER control of the ROBOT is not permitted at this time. During this period, the ROBOTS may react only to sensor inputs and commands programmed into the onboard control system."

Any more details? Thanks much!
Reply With Quote
  #7   Spotlight this post!  
Unread 07-02-2010, 11:56
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,534
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Pre match switch for autonomous

The period we're talking about isn't an official in-the-rules period of time. After you set your robot up on the field, get your driver station plugged in, and get it all powered up, you'll be running any code that you put in the "disabled" VI (if you're using labview. C++ and Java have equivalents).

This means that you'll have 30 seconds to a minute where everything is powered up and running when you can set your mode.
Reply With Quote
  #8   Spotlight this post!  
Unread 07-02-2010, 15:21
ninjasquid ninjasquid is offline
Registered User
FRC #3299 (The Warehouse Crew)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Minnesota
Posts: 10
ninjasquid is an unknown quantity at this point
Re: Pre match switch for autonomous

Okay, that makes our job much easier!

Thank you all very much!
Reply With Quote
  #9   Spotlight this post!  
Unread 08-02-2010, 14:45
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: Pre match switch for autonomous

We've been having a discussion in this thread regarding the various robot states and the modes that will be commanded during competitions.

There are a few assumptions in here that conflict a little with the thread over in the NI/Programming thread ...

Namely, the Joystick (and other) values from the drivers station are not "zeroed out" but rather, latched just before going into Autonomous Enabled.

Personally, I prefer putting the switches on the 'bot ... but there are many proponents of putting them at the DS so that they can perform "last minute" changes to their Auton strategy.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
Reply With Quote
  #10   Spotlight this post!  
Unread 08-02-2010, 20:41
ninjasquid ninjasquid is offline
Registered User
FRC #3299 (The Warehouse Crew)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Minnesota
Posts: 10
ninjasquid is an unknown quantity at this point
Re: Pre match switch for autonomous

Okay i read the other post, and i think i understand a decent amount of it but i feel like i missed some of the concepts as well.

I am part of a rookie team and haven't had much experience so this is al a bit of a trial by fire.

When you say:
Quote:
Namely, the Joystick (and other) values from the drivers station are not "zeroed out" but rather, latched just before going into Autonomous Enabled.
What exactly does that mean? And more practically, does that still allow me to, before the match starts and while setting up the DS, turn the throttle knob on the joystick, and then have it affect how the code runs when Auton begins?
Reply With Quote
  #11   Spotlight this post!  
Unread 09-02-2010, 08:33
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,753
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: Pre match switch for autonomous

Quote:
Originally Posted by ninjasquid View Post
When you say:

What exactly does that mean? And more practically, does that still allow me to, before the match starts and while setting up the DS, turn the throttle knob on the joystick, and then have it affect how the code runs when Auton begins?
From the dictionary: Electronics a circuit that retains whatever output state results from a momentary input signal until reset by another signal.

Loosely, it means to store the value in a place where it will be retained until you decide you no longer need it. And yes, it means you can set the throttle pre-match.

Greg McKaskle
Reply With Quote
Reply


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
pic: Pre Match Strategizing Alex Dinsmoor Extra Discussion 1 01-04-2009 18:09
Pre-match Checklist scottydoh General Forum 21 26-03-2008 16:27
Pre-Match Strategy Sessions Chris Fultz General Forum 11 21-04-2007 16:07
Good Switch For Autonomous Mode Select misterfoo Electrical 11 19-03-2006 16:37
Pre-Match/Post- Match Pit Routine Mark_lyons General Forum 14 31-03-2002 15:19


All times are GMT -5. The time now is 17:34.

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