Log in

View Full Version : 2005 default code


kevin.fort
08-01-2005, 16:25
Can anyone tell me where to find the 2005 default code for the robot
from the kickoff i was under the impression it would be on the website but it is not. Did it come in the boxes of robot parts or have they just not posted it on the first site yet?
thx and good luck to everyone, it is going to be a fun year

doy
08-01-2005, 16:27
http://www.ifirobotics.com/docs/frc-code-1-7-2005.zip

kevin.fort
08-01-2005, 16:48
http://www.ifirobotics.com/docs/frc-code-1-7-2005.zip
Thx but where did you get that link?
not that i dont believe it works but is that an official FIRST site because if it isn how were we supposed to know where to get the code from

Ryan M.
08-01-2005, 16:53
Thx but where did you get that link?
not that i dont believe it works but is that an official FIRST site because if it isn how were we supposed to know where to get the code fromYes, that link is to an official FIRST site. It is simply another domain used by Innovation FIRST (www.innovationfirst.com). :)

kevin.fort
08-01-2005, 16:57
Yes, that link is to an official FIRST site. It is simply another domain used by Innovation FIRST (www.innovationfirst.com). :)
oh ok then why could i not find thast i was looking around the site for almost an hour and i even google searhed the page looking for default code
ok well maybe im impaired or maybe i just want looking for the right thing
Thx again everyone that will be a huge help i mean the robot isnt much good without any code

mohrr
08-01-2005, 17:15
http://www.ifirobotics.com/docs/frc-code-1-7-2005.zip
I may be wrong, but a quick glance through that code doesn't reveal any of the stuff that was mentioned in the webcast, such as a script interpreter, PID controller, etc. Do I need to look harder in there, or is that somewhere else?

CmptrGk
08-01-2005, 17:22
I may be wrong, but a quick glance through that code doesn't reveal any of the stuff that was mentioned in the webcast, such as a script interpreter, PID controller, etc. Do I need to look harder in there, or is that somewhere else?
mabey that stuff is on a resource disk included with the kit. i know i saw saw a software collection of some sort in the kit of parts list.

Kamikaze
08-01-2005, 17:26
The zip file on the Innovation First website marked frc-code-1-7-2005.zip has a README.txt file which claims the code is for the 2004 FRC and that the last update was in November for stuff unrelated to anything shown in the kickoff. So it's probably a mistake.

kevin.fort
08-01-2005, 17:34
mabey that stuff is on a resource disk included with the kit. i know i saw saw a software collection of some sort in the kit of parts list.
The cds in the kit were for visula studio and for an old version of MPLAB


so if that is old code where and when do we get the new stuff

jaivas
08-01-2005, 18:42
there's a link on usfirst under "kickoff" that brings you to the ftp server on microchip.com. i think that's the new stuff. it was discussed in this forum thread (http://www.chiefdelphi.com/forums/showthread.php?t=32219)

Mr. Lim
09-01-2005, 10:37
there's a link on usfirst under "kickoff" that brings you to the ftp server on microchip.com. i think that's the new stuff. it was discussed in this forum thread (http://www.chiefdelphi.com/forums/showthread.php?t=32219)


That's just the IDE... we're still looking for the actual robot default code?

stephenthe1
09-01-2005, 11:35
is it the full version of visual studio? (all the languages it normally supports) and not a trial?

kevin.fort
09-01-2005, 11:35
That's just the IDE... we're still looking for the actual robot default code?
yea thats just the NEW FULL VERSION of the c compiler but where the default code is is still unknown to me. please help, i think it was supposed to be off the first main page under a software link but thats not up yet

Astronouth7303
09-01-2005, 16:24
http://ifirobotics.com/rc.shtml

The link to the User Default code is good.

kevin.fort
10-01-2005, 17:01
http://ifirobotics.com/rc.shtml

The link to the User Default code is good.
It is the same code as last year? the user routines are the same as last year as well as the rest of the code is nearly identical or completely identical
also does anyone know where the code for the camera is if it is not included in the default code

Anthony Kesich
10-01-2005, 17:27
The file with all of the autonomous code from the kickoff can now be found at Kevin Watson's site (http://kevin.org/frc/) in its raw form with plenty of documentation. There are also many other files there which may aid in program development.

Hope this helps.

-Tony K

kevin.fort
11-01-2005, 16:12
The file with all of the autonomous code from the kickoff can now be found at Kevin Watson's site (http://kevin.org/frc/) in its raw form with plenty of documentation. There are also many other files there which may aid in program development.

Hope this helps.

-Tony K
That helps but is that the entire default code?
like i guess where is the code we are supposed to get. i mean it has to be posted on the first site otherwise how would everyone get it.
We need the OFFICIAL 2005 code soon or how can they expect us programmers to get things done

CJO
11-01-2005, 16:18
Kevin Watson wrote the "official" 2005 scripting system in preparation for the kickoff. Currently there are three "default" systems. 1) the Camera default code which does not work with 2) the IFI default code which does not really work with 3) Kevin Watson's scripting system.

I have a longer discussion of the differences here: http://www.chiefdelphi.com/forums/showthread.php?threadid=32538

Mark McLeod
11-01-2005, 16:47
That helps but is that the entire default code?
like i guess where is the code we are supposed to get. i mean it has to be posted on the first site otherwise how would everyone get it.
We need the OFFICIAL 2005 code soon or how can they expect us programmers to get things doneSomeday soon, but not quite yet.

"2005 RC User Default Code (http://www.ifirobotics.com/docs/???.zip) (zip, - available soon), with camera code - works only with C18 Compiler (ver 2.4) from Microchip."

http://www.ifirobotics.com/rc.shtml

stephenthe1
11-01-2005, 16:51
also, if you have time. I'm interested in knowing problems that different teams have run into using quarature encoders. if you would be willing to send me some very simply code for last year, that I could look at (delete any of the team "secrets"), that would help me a lot. I'm learning using last year's robot. (it has one pwm attatched to an arm I want to raise and stop after it goes up like a few feet)

thank you,
Stephen

deltacoder1020
12-01-2005, 02:34
Quoted directly from the page:

2005 RC User Default Code (zip, - available soon), with camera code - works only with C18 Compiler (ver 2.4) from Microchip.


Note the "with camera code" and the "available soon".

Edmund
13-01-2005, 01:39
The file with all of the autonomous code from the kickoff can now be found at Kevin Watson's site (http://kevin.org/frc/) in its raw form with plenty of documentation.
Since I would REALLY like to see the scripting stuff occuring, the code shown at the kickoff during the 15 seconds would be really helpful for me. However, having gone to http://kevin.org/frc/ , and downloading the file description "Raw build directory of the scripted navigation demo shown at the kick-off. An updated version is in the works." , file name "navigation_frc2005_01_08.zip" I HAVE NOT found the autonomous code so promised shown during the kick off. All I see is
while (autonomous_mode) /* DO NOT CHANGE! */
{
if (statusflag.NEW_SPI_DATA) /* 26.2ms loop area */
{
Getdata(&rxdata); /* DO NOT DELETE, or you will be stuck here forever! */

/* Add your own autonomous code here. */

// robot_control();

Generate_Pwms(pwm13,pwm14,pwm15,pwm16);

Putdata(&txdata); /* DO NOT DELETE, or you will get no PWM outputs! */

Where is the autonomous code? Perhaps I am clueless and it is in another file, if so, please point it out to me.

Thank you.

-Edmund

Anthony Kesich
13-01-2005, 01:48
All of the autonomous code is in a file called robot.c, if you really want to understand it, you need to read pid.c, gyro.c, encoder.c and their espective headers. The script that runs tha code is in commands.h. If you want a more detialed discussion of the script, i posted something about it here (http://www.chiefdelphi.com/forums/showthread.php?p=318645#post318645). I hope to fix the grammer later since I am falling asleep at the keyborad right now.

Hope this helps.

-Tony K

CJO
13-01-2005, 02:15
Also, you can add your own control where robot_control() is.

Astronouth7303
14-01-2005, 21:09
The script itself is in commands.h . I, personally, don't like the setup much and am working to improve it. (you'll here when I finish a more readable form.)

Human Player
16-01-2005, 12:59
hey everyone the new 2005 default code is up on http://www.ifirobotics.com/rc.shtml#Programming

hope that solves the problem

ten3brousone
18-01-2005, 00:39
sorry but i am still lost on which version i should download to start coding in. and we do plan on using the CMU camera, but i'm a rookie that started this year so i got confused on whats the actualy compiler this year. i also find that theres different versions for diff compilers or items you want to do

ECM
18-01-2005, 20:04
sorry but i am still lost on which version i should download to start coding in. and we do plan on using the CMU camera, but i'm a rookie that started this year so i got confused on whats the actualy compiler this year. i also find that theres different versions for diff compilers or items you want to do


The version of the compiler: "2005 RC User Default Code (zip, - available soon), with camera code - works only with C18 Compiler (ver 2.4) from Microchip." note that the this code is available for download from Innovation First site. http://www.ifirobotics.com/docs/frc-code-1-12-2005v2.4.zip
The CMU camera code is already built and ready. Check the code for functioning with the Compiler version indicated above in the program MP LAB IDE version 6.62, developed by Microchip Technology Inc. for Microchip micro-controllers.


I tried to build the project in MPLAB IDE which I downloaded from Kevin Watson's web site http://kevin.org/frc/. It seems to be working with autonomous mode code. In the actual code it says that the main part of code that tells robot where to go is in comments, the suggestion that follows after says that the part of that code you wish to use you have to activate.
I'll try to activate that code and download it to the robot. :)

CJO
18-01-2005, 22:23
Ok,

Here is how things stand at the moment. There are now (thank God) only two "official" code sources.

1) IFI code with camera support, and a somewhat sorted out serial driver.
Available here: http://www.ifirobotics.com/docs/frc-code-1-12-2005v2.4.zip

2) Kevin Watson's scripting system. Anthony Kesich wrote a guide to the scripting commands. Search his posts. This is the code that was demonstrated at the kickoff.

Available Here: http://kevin.org/frc/navigation_frc2005_01_08.zip

So, right now the trick is to integrate the tow. Our team is working on it, we will post in the whitepapers section as soon as we have a working integrated codebase. In addition, Mr. Watson's code currently lacks a math library. We are going to add the CORDIC library in the white papers section which I believe should work. We will post a complete workspace with the scripting guide soon.

davidhoare
19-01-2005, 11:13
I apologize if this has been answered directly in other forums but I could not find it...

I have set our system up with the v2.2 compiler, but for this problem am not even using it.

I downloaded the master code and followed the instructions. It seemed to work fine.
I downloaded the frc_default.hex code supplied in the 2005 RC User Default Code ver2.2 archive. (didn't compile it or modify it in any way - just downloaded through the IFI loader...)

That gave me rapidly blinking red/green 'program state' LED on the RC and gibberish on the IFIloader terminal window.

Trying instead to download the FRCCode.hex that came in the same archive give us slow blinking program state red LED on the RC and nothing in the IFI loader terminal window.

(both situations gave yellow solid "rcmode" light on RC, and red flashing "Code Error" light on OI)

We are stumped. Any help PLEASE. We have gone back to scratch so many times now we are tearing our hair out. :ahh:
Thanks!
David Hoare

Ryan Cumings
19-01-2005, 11:31
I apologize if this has been answered directly in other forums but I could not find it...

I have set our system up with the v2.2 compiler, but for this problem am not even using it.

I downloaded the master code and followed the instructions. It seemed to work fine.
I downloaded the frc_default.hex code supplied in the 2005 RC User Default Code ver2.2 archive. (didn't compile it or modify it in any way - just downloaded through the IFI loader...)

That gave me rapidly blinking red/green 'program state' LED on the RC and gibberish on the IFIloader terminal window.

Trying instead to download the FRCCode.hex that came in the same archive give us slow blinking program state red LED on the RC and nothing in the IFI loader terminal window.

(both situations gave yellow solid "rcmode" light on RC, and red flashing "Code Error" light on OI)

We are stumped. Any help PLEASE. We have gone back to scratch so many times now we are tearing our hair out. :ahh:
Thanks!
David Hoare
You may need to use the 2.4 user code. Try loading that code in and see if the program error goes away.

davidhoare
19-01-2005, 19:21
You may need to use the 2.4 user code. Try loading that code in and see if the program error goes away.

Thankyou Ryan.

That worked - once... We loaded the default 2.4 code and all was great. Then decided we would work on that code, so needed to install the 2.4 compiler...did that, and now THAT SAME CODE will not load successfully. Same red-green rapid flashing :ahh: (again - same code as before. Default IFI downloaded .hex files. No modifications at all. Not compiled.)

Does this mean we have a dud controller? We have reset, blanked, and re-manstered it dozens of times. Tried no cables, tethered, wireless, no OI, no joysticks or pwm's, anything...

Thanks for your help - what else should we do!?!
David

Astronouth7303
20-01-2005, 15:24
Rapidly flashing red/green for program status generally means that a printf() was used before InitializeSerialComms(). Or at least it did last year; I don't know if it applies to the new serial drivers.

RIgnazio
20-01-2005, 16:32
http://www.usfirst.org/robotics/2005/frcdocs.htm#Section5
Look about 1/2 way down the screen that comes up. It will say:
2005 FIRST Robotics Competition Supplemental Robot Code Demonstrated at the Kickoff by Dave Lavery Added 1-10-05

That is where the kickoff code is, then modify that to your needs.
If you don't see it, mainly because you are in a rush, the link for the code is:
http://www.usfirst.org/robotics/2005/frc_supplemental_software/Navigation_FRC2005_01_08.zip
It should work fine, assuming that FIRST used the latest IDE, latest C18, and latest IFI Loader when they did this code.

PM me if you need more help.