Go to Post Being the GDC is not an easy job, anything can happen. Lunacy happened ::rtm:: - Conor Ryan [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 06-11-2007, 12:25
Team865 Team865 is offline
Registered User
FRC #0865
 
Join Date: Nov 2007
Location: Canada
Posts: 11
Team865 is an unknown quantity at this point
How to upload/download the code from a robot?

Our team just started running again this year and all our programmers are gone and no one on our team remembers how to upload the code off the robot or even to download it on, if i could get a link to the programs required and maybe a couple steps on how to use it that would be great.
  #2   Spotlight this post!  
Unread 06-11-2007, 13:05
Roger Roger is offline
Registered User
FRC #1153
 
Join Date: Jan 2006
Rookie Year: 1900
Location: Walpole MA
Posts: 683
Roger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond repute
Re: How to upload/download the code from a robot?

Well, at least you're wondering about this now, instead of during the build period....

There are two major robot compilers, Easy-C and MP-LAB. The disks are provided in the Kit of Parts. Easy-C can be downloaded but is only good for free for one week, then you have to pay. The MP-LAB is free for use with FRC, but they have several versions on-line that may or may not work with FRC. Best bet is look for the disks.

Kevin Watson's website Kevin.org has a whole bunch of code that tweaks the original IFI robot code and is used with MP-LAB.

Assuming you're using Easy-C, it has it's own built-in downloader.

Assuming you're using MP-LAB, you use a separate program called IFI_Loader. MP-LAB you type in the C code and compile it into a .HEX file, then you run IFI_Loader, browse for the .HEX file, then download it to the robot. Connection is made with a serial cable connected between the computer doing the downloading and the robot controller on the robot, at the PROG (or PROGRAM? I forget) connector.

Before downloading the code, press the PROG button on the robot controller until one of the red lights come on. Too long and you get a light show and you have to press the RESET button to get out of it. The robot does nothing until the code gets downloaded.

IMPORTANT! Put the robot up on blocks so it can't drive around, as it goes as soon as the download is completed, especially in Autonomous mode.

I don't know which way "downloading" and "uploading" go between robot and computer. I just assume one "downloads" from computer to robot. But you can't get the code from the robot into your computer. Well, maybe you can, but it's very unreadable. Well, maybe you can read machine code, but it'll take less time to just write the code to begin with!

Hope this gets you started. Good luck!

Roger.

PS: Are you doing this during school hours? Hmmmm.....

________________________________

A child of five would understand this. Send someone to fetch a child of five.
Groucho Marx

Last edited by Roger : 06-11-2007 at 13:12. Reason: Truant Officer checking his watch
  #3   Spotlight this post!  
Unread 06-11-2007, 14:26
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
Re: How to upload/download the code from a robot?

In the event you need to save the executable code running on the robot controller and don't have the source for it you can use IFI Device-Reader to save it to your PC. It will not be readable or editable since it is the "hex" file you would normally upload through IFI-Loader but you can save it in the event you need to reload it.

http://www.ifirobotics.com/docs/device-reader.zip
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics


  #4   Spotlight this post!  
Unread 06-11-2007, 17:03
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: How to upload/download the code from a robot?

http://www.chiefdelphi.com/forums/sh...ad.php?t=31817
__________________
Eric Haskins KC9JVH
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
Can I download code from the RC onto my computer? Team1341TechMan Programming 2 16-10-2007 18:29
2006 Robot Code Download Chris_Elston Programming 2 05-05-2006 10:42
Anonymous upload/download creation help Dillon Compton Website Design/Showcase 7 23-04-2006 20:06
Download code from robot Luminous Programming 4 25-05-2005 13:32


All times are GMT -5. The time now is 02:38.

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