Go to Post There are few times I sleep so soundly as I do after an FRC build season and regional. - JamesCH95 [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 21-02-2003, 20:21
Unsung FIRST Hero
miketwalker miketwalker is offline
Robot Lifeguard
FRC #1902 (Exploding Bacon)
 
Join Date: Dec 2001
Rookie Year: 2002
Location: Orlando, FL
Posts: 878
miketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond repute
Send a message via AIM to miketwalker
Swapping codes

I have codes for both the left and right side of the ramp. We want to load the code used in the pits and then somehow swap it before the match in case we are assigned sides and don't get to pick so we can swap codes. It's easy to merge the codes but how have other teams made it to swap sides? Are you using switches? Is there anyway to swap it on the RC itself without a switch? I'm just trying to find the simplest way and hopefully get out of installing a switch on the robot on the practice day. Thanks everyone.
__________________
Chopsaw? Chopsaw.
  #2   Spotlight this post!  
Unread 21-02-2003, 20:29
Eugene Eugene is offline
Registered User
#0321 (Lancers)
 
Join Date: Jan 2002
Location: Philadelphia
Posts: 55
Eugene is on a distinguished road
Send a message via AIM to Eugene
As far as I know you can use the Operator Interface to set what side you want your robot to go, since you can communicate with the RC. The reason why you cannot operate your robot during that time is because the processor that generates the PWM codes and controls the relays is disabled.

Good Luck!


Eugene
  #3   Spotlight this post!  
Unread 21-02-2003, 21:35
ttedrow's Avatar
ttedrow ttedrow is offline
Herding electrons
AKA: Tim Tedrow
FRC #0281 (EnTech)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2000
Location: Greenville, SC
Posts: 165
ttedrow will become famous soon enoughttedrow will become famous soon enough
Remember, during the human player period, operator will NOT be allowed to touch the OI.

The simple solution is to put a toggle switch on your robot and wire it to a digital input. Then some simple code and you are done.


RigthTurn VAR rc_swB.bit4 '13 Autonomous Mode Turning Direction: 1=Right, 0=Left


IF RigthTurn THEN
'Do Right turn code
ELSE
'Do Left turn code
ENDIF

I hope this helps

Tim Tedrow
__________________
Sr. Design Engineer
Caterpillar Inc.
Greenville, SC

KD4EGM

FRC 281 Greenvillains
Infected with the FIRST virus in 2000

Yes, Chute Door!!!
  #4   Spotlight this post!  
Unread 21-02-2003, 21:36
Eugene Eugene is offline
Registered User
#0321 (Lancers)
 
Join Date: Jan 2002
Location: Philadelphia
Posts: 55
Eugene is on a distinguished road
Send a message via AIM to Eugene
But, you can touch it before
  #5   Spotlight this post!  
Unread 22-02-2003, 10:10
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Keep in mind that FIRST has stated the match list will say which side of the ramp you are on. You can use this information to download the appropriate code ahead of time...
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
  #6   Spotlight this post!  
Unread 22-02-2003, 13:36
Kevin Rugani Kevin Rugani is offline
Registered User
#0096 (LEGO Maniacs)
 
Join Date: Feb 2003
Location: Springfield, MA
Posts: 3
Kevin Rugani is an unknown quantity at this point
Send a message via AIM to Kevin Rugani
Swapping programs

If you look on the Robot Controller, there is a jumper which can be placed on either user or default. I simply loaded a program for starting on the left side while the jumper was on default, then switched the jumper to user and loaded a program for the right side. This was more of a quick solution to switch between programs since we did not have our program selector switches wired yet. The program ran fine each time. The only downside is that the jumper is pretty small and annoying to change sometimes.
__________________
Kevin Rugani
Team 96
Email: rugo@wpi.edu
  #7   Spotlight this post!  
Unread 22-02-2003, 13:39
Unsung FIRST Hero
miketwalker miketwalker is offline
Robot Lifeguard
FRC #1902 (Exploding Bacon)
 
Join Date: Dec 2001
Rookie Year: 2002
Location: Orlando, FL
Posts: 878
miketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond repute
Send a message via AIM to miketwalker
Re: Swapping programs

Quote:
Originally posted by Kevin Rugani
If you look on the Robot Controller, there is a jumper which can be placed on either user or default. I simply loaded a program for starting on the left side while the jumper was on default, then switched the jumper to user and loaded a program for the right side. This was more of a quick solution to switch between programs since we did not have our program selector switches wired yet. The program ran fine each time. The only downside is that the jumper is pretty small and annoying to change sometimes.
I thought you couldn't overwrite the default code? Also, where did they say you will know which side you are on ahead of time? I thought they just said they might not tell you till just a few minutes before a match? Thanks everyone.
__________________
Chopsaw? Chopsaw.
  #8   Spotlight this post!  
Unread 22-02-2003, 13:49
Kevin Rugani Kevin Rugani is offline
Registered User
#0096 (LEGO Maniacs)
 
Join Date: Feb 2003
Location: Springfield, MA
Posts: 3
Kevin Rugani is an unknown quantity at this point
Send a message via AIM to Kevin Rugani
I loaded our modified program with no problems on the default side, and it ran fine every time (at the UTC scrimmage hosted by aces high in suffield, ct). As far as starting sides, there were printouts of the match schedules which told each team their color and starting side. I'm assuming that F.I.R.S.T. will run things the same way. I am pretty sure you can overwrite the default code, however.
__________________
Kevin Rugani
Team 96
Email: rugo@wpi.edu
  #9   Spotlight this post!  
Unread 22-02-2003, 15:26
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Re: Re: Swapping programs

Quote:
Originally posted by miketwalker
I thought you couldn't overwrite the default code?
The original (2000 I believe) IFI controllers did not allow you to overwrite the code in the Default slot, but due to some faulty STAMP processors which were spontaneously losing the user code, they unlocked the Default code slot to use as a backup,intending you to load a second copy of your code into the default slot. However, nowhere in the rules does it say that the two code slots have to be identical.
Quote:
Also, where did they say you will know which side you are on ahead of time?
Here's the rule which says you will know
in advance where on the field you will be
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
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
Alt codes in Forums? Elgin Clock CD Forum Support 2 27-09-2003 00:45
html codes Tim_Wochomurka Chit-Chat 2 01-11-2002 22:14


All times are GMT -5. The time now is 08: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