2007 Default Code?

Look at the solder points on the far right. I think those might be it. Ill have to check the PDF for more info. Could be you have to put yout own pins on it.

The boards are the same just the headers are removed. I would ask in the official FIRST forum if you can run the servos from the camera if the 05/06 cameras are used.

Hm. Is there any multiple target code written that’s not in easyC? Like, maybe in normal C?

Well the targeting system for the 2007 kickoff is in “C” you would just have to look at the code in easyC and then move it to the Kevin’s code.

Brad Miller should have it available for WPILib soon.

C’mon, this is pure FUD. The files terminal.c/.h are present in my code just for this reason. I also include this text:

Since the IFI terminal is somewhat restrictive, you might
consider using one of the free high quality terminal emulators
available. TeraTerm Pro (Ayera Home Page) is a
good example. If you dive into the existing code or create
your own custom menus (as I hope you will), you might consider
writing code that will exploit the capabilities of a good
terminal emulator. To get started, do a google search on the
phrase “terminal escape codes”.

Building these robots is hard enough already, so If you’re going to be supporting teams here, please take the time to make sure you’re giving folks accurate information. Thanks.

-Kevin

I stand corrected. Sorry, when I was programming in 05/06 with your code I missed it.

Has there been any actually default code posted for the FRC 2007? Or is this all conjecture and we are assuming that its the same as the 2006 code (sans cam)

I keep seeing references to “Check IFI for the 2006 code.”
I must be dense I only see a broken link for the 2007 code.

Through a variety of ‘incidents’ we no longer possess 2006 code and would really like to start working on the code in some form.

So, can anyone show me my error and point at where to find the 2006 code?

Thanks

Sure man, here is the 2006 default code (Please gimme some good rep. points). It may not be the latest version, but it worked for me.

Yeah, I don’t need any 2007 default code, as we are using the CMUCam, and Kevin kindly already updated that. I am sure 2006 stuff will work though.

I bet if we do see any “2007” code, it will be the latest update of the 2006 stuff. I believe I saw it on Kevin’s site as being from December. It is not there now.

The one thing I need to get though is the latest 2006 code available, but it is not on the IFI site anymore. You can use what I uploaded for testing, but don’t even try it in mission-critical competition. Does anyone have the December edition of the code?

frc-code-2-28-2006.zip (118 KB)


frc-code-2-28-2006.zip (118 KB)

The 2007 Code is available since pretty much now at http://ifirobotics.com/rc.shtml at the bottom

Link to direct file frc-code-2007-8722.zip

Whoa, new Master Code :slight_smile: Even though I don’t really need to, as I only use the CMUCam Code, I will run a file difference compare on it to see what changed in the .c and .h files. I’ll let y’all know what I find.

The default code for 2007 is now available on ifirobotics. Just look under Robot Controls and FRC Robot Controller. The new code is located at the bottom. I just downloaded it now. One question though. Is the new code for stabilizing the victors in the default code? Or is it somewhere else? I have not been able to find it.

Thanx!
Athena

P.S-I am not using Easy C

Just FYI, according to IFI, there are no changes to the code other than the new master code. Version thirteen of the master code is needed for the new radio modems.

-Kevin

Last night I put the 2007 controller and radios on the 2005 robot and was not able to download my code, I got a solid orange on the RC mode led even when the bot was not disabled, does any one know if this could be due to the new radio modems and not having the right master code?

2005 was different PIC18F processor (8520 if I remember correctly).
2007 controller is PIC18F 8722. If you were downloading 2005 code onto 2007 hardware that may not work correctly unless you recompile with correct settings.

Bud

Differences between 2/2006 and 1/2007 code zips

file: 18f8722.lkr not same
grp15 is now protected, wasn’t in 2006

file: ifi_library.c in 2007, not in 2006(?)
LibReadMe.txt, change high priority pragma not to use shadow regs

file: README.txt
2006 update comment:
“02/20/2006
- Ifi library update.” missing from 2007 file

file: user_routines.c
Default_Routine() has following added lines in 2007 base
" p1_x = 255 - p1_y;
p1_y = 255 - pwm05;"

file: user_SerialDrv.c
“static char rom2ramBufr[12];” added to 2007
Serial_Write() routine added to 2007 code base

file: user_SerialDrv.h
prototype added to 2007 code.

file: Using_a_2005_FRC.txt, file name change - was called
Using_Last_Years_FRC.txt.

file: Util_lib.asm appears to be new for 2007

file: FRC_alltimers_8722.lib now called FRC_alltimers_beta.lib

file: FRC_alltimers.lib new, added 2007.

file: FRC_Default.hex different, time stamp on 2006 is 2/28/2006, the
one for 2007 has an older timestamp of 12/13/2005.

file: FrcCode8722/FRC_default.hex dated 10/10/2005 is new in 2007 zip.

file: FRC_library.lib appears to be new file included in 2007, is
dated 10/10/2005.

file: FRC_MASTER_V12.BIN replaced with FRC_MASTER_V13.BIN

file: FrcCode.hex appears to be new file in 2007.

That’s strange. Anyone understand why?

What was the latest version of the 2006 code? I though there was a December edition, but I only have 2-28-06 stuff. It seems like all the changes that were made were not really important–like it is a “tidy” version. I will port my code to it anyways as it does have newer .lib and .hex files. Cut and Paste — the only thing Microsoft did right.

From the 2007 readme “This directory contains the default code for the Innovation First 2006 Full-size Robot Controller”

LOL. Maybe they should change the date :wink:

The second line of code is a joystick inverse code (Up is down, down is up). The first one would re-inverse that on the p1_x variable. I don’t see any point of this.

Yes, you have to follow the “Using last year’s code.txt” if you want to use 2005 on ur 2006/2007 bot.