Go to Post I feel like I need to rinse out my brain with drain cleaner - dlavery [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 01-04-2009, 20:41
jph399's Avatar
jph399 jph399 is offline
Programming
FRC #2500 (Herobotics)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Minneapolis, MN
Posts: 27
jph399 is an unknown quantity at this point
Lightbulb Autonomous Switching Questions

I am trying to wire 3 different autonomous routines to the first 3 digital Inputs on the Driver Station. I was wondering how do I wire the "get digital input VI" output to a case structure where the 3 different autonomous routines will be.

I plan on being able to throw a jumper on the 1st,2nd or 3rd digital input on the driver station and thus choosing which of the 3 routines I want right before the match.
I am also wondering what the value will be on the Input when I attach a jumper.( 1-8?, or boolean maybe)
and do i attach the jumper to +5v and Signal? or something else

Please Help
__________________
"Think Outside the BUN"
"If it doesn't fit - Make it Fit"
Reply With Quote
  #2   Spotlight this post!  
Unread 01-04-2009, 21:13
Tanner's Avatar
Tanner Tanner is offline
Registered User
FRC #1261 (Roblions)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Suwanee, GA
Posts: 311
Tanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to behold
Re: Autonomous Switching Questions

To wire switches on the driver stations to control the autonomous mode you must put the switches that decide the autonomous mode in the autonomous disabled case structure because in autonomous mode you cannot read any inputs from the driver station.

And if you're going to use the driver station to choose a autonomous mode, use a switch wired from ground to signal, not a jumper. If you use a jumper chances are you may connect it wrong and short out the driver station (or cause it to reboot - and possibly causing more damage).

Its easier just to wire three switches on the robot to the digital side car and use those. We do that and just have our field team set the switches when they set the robot down. It is easy and simple.

Hope that helps.

-Tanner
Reply With Quote
  #3   Spotlight this post!  
Unread 01-04-2009, 21:39
rwood359 rwood359 is offline
Registered User
AKA: Randy
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Waialua, HI
Posts: 212
rwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to all
Re: Autonomous Switching Questions

Quote:
Originally Posted by jph399 View Post
I plan on being able to throw a jumper on the 1st,2nd or 3rd digital input on the driver station and thus choosing which of the 3 routines I want right before the match.
Your problem is that the Digital Inputs on the DS are floating. That means that there is no guarantee which value (true or false) will be read when there is nothing connected to the input. The best way is to use a pull-up resistor (2k is probably OK) between +5 and the signal and a switch between ground and the signal. When the switch is open, the signal is pulled to +5 (true). When the switch is closed, the signal is grounded (false).

You have to read the DIs during disabled mode - where depends on whether you are running the Basic or Advanced Framework. After reading the DIs, write them to a Global that you read during Autonomous mode.

I suggest that you download FMS Lite and run it to insure that you go through the autonomous mode that you are trying to select.
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
Autonmous switching questions jph399 NI LabVIEW 3 04-04-2009 09:23
Switching between Autonomous and Teleoperated Technic-R-C National Instruments LabVIEW and Data Acquisition 3 07-02-2009 08:55
Autonomous Switching Nicole_Ypes VEX 11 17-03-2007 08:09
Switching to/from autonomous mode RDD Programming 6 12-02-2007 16:14
Question about switching autonomous modes DemonYawgmoth Programming 2 23-03-2005 17:02


All times are GMT -5. The time now is 10:29.

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