|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
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 |
|
#4
|
||||
|
||||
|
Re: How to upload/download the code from a robot?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |