Go to Post I also predict that most predictions will be wrong. - Joe Ross [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 14-01-2004, 16:48
AlphaOmega870 AlphaOmega870 is offline
Registered User
AKA: Mike
#0870 (Southold RICE)
Team Role: Programmer
 
Join Date: Oct 2002
Location: Southold, NY
Posts: 18
AlphaOmega870 is an unknown quantity at this point
Send a message via AIM to AlphaOmega870
Programs question

How do you load multiple programs onto the Robot Controller? And also how do you use digital/analog inputs? Thank you in advance.
  #2   Spotlight this post!  
Unread 14-01-2004, 17:02
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,188
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Programs question

by loading multiple programs.. im inferring that u mean different autonomous prgms.. what we are doing and what we did last year was put a simple switch that would turn the digital io pins high or low.. then u can open up the user_routines.h file and change the aliases of the pins to different things (ex: program1)..then by using that u could set up a simple if then situtation to load ur auto based on what the switch is turned to

ex..
if (program1 = 1)
{add ur code here}
elseif (program2 = 1)
{whatever else, u get the idea)
  #3   Spotlight this post!  
Unread 15-01-2004, 01:42
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Programs question

using the digital/analog inputs is fairly simple, look in ifi_aliases.h to find the macros that correspond to the various pins for the digital inputs, and the various channels for the analog inputs. remember that for an analog input, you'll need to use Get_Analog_Value() (i think that's the name... don't have the reference handy) to retrieve the actual value.

as for multiple programs, if you had a laptop you could simply bring the programming cable and download programs on the spot, or you could do what was suggested and create a "meta-program", that essentially is two different programs combined with an if-else statement.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #4   Spotlight this post!  
Unread 15-01-2004, 08:23
Adam Shapiro's Avatar
Adam Shapiro Adam Shapiro is offline
Registered User
FRC #0555 (Montclair Robotics)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Montclair, NJ
Posts: 401
Adam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud of
Send a message via AIM to Adam Shapiro
Re: Programs question

Last year we added 3 toggle switches onto our control board for program control. During the disabled mode before the match the robot can read (but not use) input from the controller. We were able to use this to our advantage to give us an option of 7 programs which could be selected and changed up to the last second before the horn started the match. It was very useful for those times when you forget the strategy and select the wrong program!!
__________________
Mentor to Teams 555, 1929, and 2070!
Currently working in hardware design at Cisco.
Cornell University DARPA Urban Challenge - http://www.cornellracing.com
Co-Captain Team 555 - 2003,2004,2005
Trust, Love, and Magic
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
A question about control system options computhief263 Control System 7 04-02-2004 14:46
my idea of a question forum... Ken Leung General Forum 12 30-11-2002 12:17
MnM EASY Question of the Day Winners! Mike Bonham General Forum 22 03-05-2002 21:21
A quick question Joelster Technical Discussion 6 10-02-2002 09:09
Rookie Programmer has question about the default code DanL Programming 3 26-01-2002 19:59


All times are GMT -5. The time now is 01:26.

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