Go to Post in other words, "always have something to do that will change up your life" - Nawaid Ladak [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 13-02-2003, 18:27
choctawmike choctawmike is offline
Registered User
#0590
 
Join Date: Feb 2003
Location: Choctaw, MS
Posts: 1
choctawmike is an unknown quantity at this point
Banks

The programmer for our team has left us high and dry and I don't know anything about PBASIC or how the controller. From what I've been able to read I will need to download my program to different banks on the controller and then how do I do this? Also, How can I toggle between my autonomous programs? Your help will be greatly appreciated.
  #2   Spotlight this post!  
Unread 13-02-2003, 19:15
Jeff_Rice's Avatar
Jeff_Rice Jeff_Rice is offline
ElementisRegamusProelium
#1359
Team Role: Programmer
 
Join Date: Dec 2002
Location: Linn County
Posts: 283
Jeff_Rice will become famous soon enoughJeff_Rice will become famous soon enough
There are a few options:

Make multiple programs and download them on the run (laptop necessary)

Use switches on oi to create a variable, and goto different subroutines accordingly (make sure that going into auton won't reset it)

Make switches in robot (treat like sensors)

Combinations of these

And why is this thread called banks?
__________________
"He said my name is Private Andrew Malone
If you're reading this then I didn't make it home
But for every dream that's shattered another one comes true
This car was once a dream of mine now it belongs to you
And though you may take her and make her your own
You'll always be riding with Private Malone" David Ball, "Private Malone"
  #3   Spotlight this post!  
Unread 13-02-2003, 21:41
Jferrante Jferrante is offline
Registered User
#0506
 
Join Date: Aug 2002
Location: New York
Posts: 67
Jferrante is an unknown quantity at this point
Send a message via AIM to Jferrante Send a message via Yahoo to Jferrante
the program banks, if i understand them correctly are so that you can essentially put multiple programs onto the robot at one time. What most teams seem to be doing is having there driver code in one bank, and the autonomous code in the other bank. The first command in both banks is usually to check the auton_mode variable to determine when it has changed. The benifit of this is to be able to write 2 totally seperate codes, each one with its own set of variables and programing space. The downside is that unless the programs have all the same variables in the same order they wont agree in memory and when you switch the codes, until you update the variables, there information will be useless.
alternatively you can do a subroutine for your autonomous or simply put it inside of an if statement that checks the auton_mode variable.
__________________
GodBless America
September 11, 2001... NEVER FORGET!
All Gave Some. Some Gave All. How much are you willing to give?
FDNYPD
  #4   Spotlight this post!  
Unread 14-02-2003, 03:28
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
Read all the documentation on the IFI board. The is a white paper or document on Multi-Bank programming.
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


All times are GMT -5. The time now is 04:00.

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