Go to Post I love the smell of a upcoming FRC build season in the morning. The sleepless night; the drills; welding; cutting of metal. I wait all yr. for this. - midway78224 [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 19-01-2008, 15:56
Hazmatt's Avatar
Hazmatt Hazmatt is offline
Registered User
AKA: Matt
FRC #2645 (PowerSurge)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Muskegon
Posts: 51
Hazmatt will become famous soon enoughHazmatt will become famous soon enough
How to download program to robot?

Hello everyone. I'm on a first year team and we are having a little bit of trouble getting our program to download. If someone could give me a step by step guide to downloading the program, or a link to how to do this it would be great.
  #2   Spotlight this post!  
Unread 19-01-2008, 16:00
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,006
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: How to download program to robot?

The short version:

1. Connect the robot. Use the programming cable (black) to connect the computer serial (RS-232) port to the programming port on the robot controller (RC)

2. Press the programming button on the RC, hold it for a few seconds until one of the lights turns orange (I think it's "Program state" but not sure. Robot turned on, of course!)

3 With the program open on the downloading computer, press F7. If it compiles OK, hit enter to download the program to the robot. If it does not compile OK, you have to fix that first.

That's about it.
__________________

I am N2IRZ - What's your callsign?
  #3   Spotlight this post!  
Unread 19-01-2008, 16:03
Hazmatt's Avatar
Hazmatt Hazmatt is offline
Registered User
AKA: Matt
FRC #2645 (PowerSurge)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Muskegon
Posts: 51
Hazmatt will become famous soon enoughHazmatt will become famous soon enough
Re: How to download program to robot?

Can I just download the IFI source code hex file to the robot?
Another question... do I have to hold the program button down as I turn the robot on?

Last edited by Hazmatt : 19-01-2008 at 16:06.
  #4   Spotlight this post!  
Unread 19-01-2008, 16:14
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Re: How to download program to robot?

Quote:
Originally Posted by Hazmatt View Post
Can I just download the IFI source code hex file to the robot?
You could, but you most certainly want to rebuild it with code that you've added.

Quote:
Another question... do I have to hold the program button down as I turn the robot on?
No. Hold it for a second or two after you've turned it on.
  #5   Spotlight this post!  
Unread 19-01-2008, 16:31
Hazmatt's Avatar
Hazmatt Hazmatt is offline
Registered User
AKA: Matt
FRC #2645 (PowerSurge)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Muskegon
Posts: 51
Hazmatt will become famous soon enoughHazmatt will become famous soon enough
Re: How to download program to robot?

Please excuse my noobness, but is there something I'm missing? We have downloaded the source code to the robot, the joystics are plugged in, we have to victors plugged into pwm 1 and pwm 2, and moving the joystics still causes nothing to happen on the robot. Is there a common mistake people make doing this their first time?
  #6   Spotlight this post!  
Unread 19-01-2008, 16:42
Spencer E.'s Avatar
Spencer E. Spencer E. is offline
Android junkie
FRC #1305 (NNSRI Ice3 (cubed))
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2004
Location: Ontario, Canada
Posts: 91
Spencer E. has a spectacular aura aboutSpencer E. has a spectacular aura about
Send a message via MSN to Spencer E.
Re: How to download program to robot?

Have you configured your OI to interface with your robot controller? Make sure you program your OI with your team number (Use the Team Number switches and use binary logic to make your team number), then hook your OI to your robot controller using the tether (red) cable. Don't forget to hook your radios up after that if you aren't using the tether
__________________
  #7   Spotlight this post!  
Unread 19-01-2008, 16:45
usbcd36's Avatar
usbcd36 usbcd36 is offline
Registered User
AKA: "DOS"
FRC #2399 (The Fighting Unicorns)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Solon, OH
Posts: 151
usbcd36 is a jewel in the roughusbcd36 is a jewel in the roughusbcd36 is a jewel in the rough
Re: How to download program to robot?

Well…there's quite a bit that could be wrong. Here are a few possibilities:

• First, are all five lights on the robot controller green or green and flashing? If not, there could be something wrong with your code, the link between the Operator Interface and the Robot Controller, or any number of things.

• Check to see that the PWM cables are plugged in correctly. On the Victors, the black wire should be closest to the fan (there's also a small "B" there), and on the robot controller, the wire colors are marked before the rows of pins.

• Check to see that you don't have bad PWM cables! If the controller is on and working (all lights are green/green and flashing), yet the LEDs on the Victors are orange AND FLASHING, you probably have a bad cable. When the Victors are receiving a neutral signal, the LEDs will be solid orange.

• Did you change the code at all? If you did, the program may be sending something other than what you intended to the Victors. Make sure you didn't comment out any drive code you meant to use.

This list is by no means complete, but it should provide a decent starting point.
  #8   Spotlight this post!  
Unread 19-01-2008, 16:47
laultima laultima is offline
Registered User
FRC #1458 (Danvillans)
Team Role: Alumni
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Danville, CA
Posts: 87
laultima is on a distinguished road
Send a message via AIM to laultima
Re: How to download program to robot?

Check the pwms going from the RC to the Victor. On the Victor, there is a little "b" where the black wire should go, and on the RC Im pretty sure its labeled. Make sure your pwms are plugged into pwm outputs 1 and 2. If that still doesnt work, whats are the lights on the OI and RC doing?
__________________
2007 Davis/Sacramento Regional Winner (100, 997, 1458)

2008 Davis/Sacramento Regional Gracious Professionalism Award Winner

  #9   Spotlight this post!  
Unread 19-01-2008, 17:01
Hazmatt's Avatar
Hazmatt Hazmatt is offline
Registered User
AKA: Matt
FRC #2645 (PowerSurge)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Muskegon
Posts: 51
Hazmatt will become famous soon enoughHazmatt will become famous soon enough
Re: How to download program to robot?

The code has not been modified at all. All LED's on the robot interface are flashing. the "power on" "data TX" and "valid rx" are flashing green on the operator interface, and also valid rx on the operator interface under the "robot controller" column. The pwm 1 and pwm 2 leds light up on the OI when the joysticks are moved. The lights on the victors are solid amber and don't change. do "channel" or "disable" need to be configured on the OI?
  #10   Spotlight this post!  
Unread 19-01-2008, 17:03
Spencer E.'s Avatar
Spencer E. Spencer E. is offline
Android junkie
FRC #1305 (NNSRI Ice3 (cubed))
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2004
Location: Ontario, Canada
Posts: 91
Spencer E. has a spectacular aura aboutSpencer E. has a spectacular aura about
Send a message via MSN to Spencer E.
Re: How to download program to robot?

Did you try doing what I had suggested earlier? Your bot won't communicate unless your RC knows which OI to talk to.
__________________
  #11   Spotlight this post!  
Unread 19-01-2008, 17:08
Hazmatt's Avatar
Hazmatt Hazmatt is offline
Registered User
AKA: Matt
FRC #2645 (PowerSurge)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Muskegon
Posts: 51
Hazmatt will become famous soon enoughHazmatt will become famous soon enough
Re: How to download program to robot?

yes, our operator interface is displaying our team name. Do I have to put our team number in the code somewhere also?
  #12   Spotlight this post!  
Unread 19-01-2008, 17:57
Jim E Jim E is offline
Registered User
FRC #1523 (M.A.R.S.)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Lantana, FL
Posts: 188
Jim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond repute
Re: How to download program to robot?

Try tethering the robot to the OI. To tell the Robot controller which OI to use, it must be tethered when setting the team number. Simply toggle one of the team switches to force the Robot controller to learn the team #.
__________________
Team MARS = 1.523 AU from the SUN!

Jim E.
  #13   Spotlight this post!  
Unread 19-01-2008, 18:09
Hazmatt's Avatar
Hazmatt Hazmatt is offline
Registered User
AKA: Matt
FRC #2645 (PowerSurge)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Muskegon
Posts: 51
Hazmatt will become famous soon enoughHazmatt will become famous soon enough
Re: How to download program to robot?

Thanks for all your help, unfortunately we couldn't get it working and gave up and went home. Our main mentor(electronics and programming) went on a cruise to Jamaica and I'm totally clueless on how to get this to work.
  #14   Spotlight this post!  
Unread 19-01-2008, 18:45
laultima laultima is offline
Registered User
FRC #1458 (Danvillans)
Team Role: Alumni
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Danville, CA
Posts: 87
laultima is on a distinguished road
Send a message via AIM to laultima
Re: How to download program to robot?

If you've done everything suggested here, read the IFI documentation (here: http://www.ifirobotics.com/first-legacy.shtml), you could always try asking a veteran team in your area if they would come over to help you guys out. Im sure they would be happy to.
__________________
2007 Davis/Sacramento Regional Winner (100, 997, 1458)

2008 Davis/Sacramento Regional Gracious Professionalism Award Winner

  #15   Spotlight this post!  
Unread 19-01-2008, 21:25
iwin2000 iwin2000 is offline
Registered User
no team
 
Join Date: Dec 2007
Rookie Year: 2008
Location: CT
Posts: 23
iwin2000 has a spectacular aura aboutiwin2000 has a spectacular aura about
Re: How to download program to robot?

Our team is having a little bit of a similar problem, however we are working with the robot we built last year and its control boards and we are using EasyC. This is my first year and I have no experience in programming robots to actually do something in real life ... so what I did in EasyC was I created a new standalone project because I read this is what you have to do to test your robot and have it just run.

I had the serial port connected to the laptop and the robot controller board, and the board was on as well as the robot.

In Main(), I put in some easy code just to test if the robot would react:
Code:
while(1)
{
SetPWM(1,254)
}
Then I downloaded it to the robot by pressing F7 and remembering to hold down the PROG button until Program State turned to red. It uploaded fine, the robot was on, and none of the motors were moving.

So I thought, I'm missing something in my code, something on the robot is broken, or I don't know how to run the code on the robot. Do the boards from last year work for this year? Also, does the Operator interface have to be connected to the robot, even though I don't need it to take any commands from the operator? Can anyone help me out? Thanks a lot.

Last edited by iwin2000 : 19-01-2008 at 21:31. Reason: added a little more info
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
How to upload/download the code from a robot? Team865 Programming 3 06-11-2007 17:03
How Can I Program The FRC Robot Controller To Display My Team Number jesusescobar Programming 5 22-01-2007 10:29
program download question. Tachion Technical Discussion 1 27-10-2005 10:49
program download problem zdeswarte Programming 5 23-03-2005 06:46
Crashing on program download Ryan M. Programming 3 01-02-2005 21:15


All times are GMT -5. The time now is 12:15.

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