|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#31
|
||||
|
||||
|
Re: 2007 Default Code?
Whoa, new Master Code
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. |
|
#32
|
|||
|
|||
|
Re: 2007 Default Code?
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 |
|
#33
|
||||
|
||||
|
Re: 2007 Default Code?
Quote:
-Kevin |
|
#34
|
||||
|
||||
|
Re: 2007 Default Code?
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?
|
|
#35
|
|||
|
|||
|
Re: 2007 Default 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 |
|
#36
|
|||
|
|||
|
Re: 2007 Default Code?
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. |
|
#37
|
|||||
|
|||||
|
Re: 2007 Default Code?
That's strange. Anyone understand why?
|
|
#38
|
||||
|
||||
|
Re: 2007 Default Code?
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 ![]() |
|
#39
|
||||
|
||||
|
Re: 2007 Default Code?
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.
|
|
#40
|
||||
|
||||
|
Re: 2007 Default Code?
Yes, you have to follow the "Using last year's code.txt" if you want to use 2005 on ur 2006/2007 bot.
|
|
#41
|
||||
|
||||
|
Re: 2007 Default Code?
Yes, exactly. Last year Dave dropped the hint that the CUMcam2 would be back, and I'm hoping teams have spent some time in the off-season working with the camera.
Quote:
|
|
#42
|
||||
|
||||
|
Re: 2007 Default Code?
It seems to just average the centroids of both targets (so if it finds two lights, then following the centroid sent back would have you heading towards one of the "un lighted" columns). If the pixel count indicates the presence of two targets, you would possibly have to rotate the camera to home in on only one, then track again.
edit: I'm kinda curious how this announced feature works, as well. I shouldn't speculate based only on what I've seen. |
|
#43
|
||||
|
||||
|
Quote:
Quote:
The camera cannot track multiple objects that are in view. FIRST's code does not track multiple lights. Quote:
Quote:
I have a few algorithms that can be used to derive the information you seek, but I'm not sure how much of the problem I should solve for teams. I've asked for guidance from the GDC on how to proceed. Until then, I'd really like to see some open discussion about this problem because it's a fun problem with a few possible solutions. -Kevin |
|
#44
|
||||
|
||||
|
Re: 2007 Default Code?
Thanks Kevin. We can figure out the rest. I just wanted to make sure I was not missing something obvious. Now I have to get MPLAB to compilke the camera code. I keep getting this linker error:
MPLINK 4.02, Linker Copyright (c) 2006 Microchip Technology Inc. Error - could not find file 'clib.lib'. When I open the lib, this file is present in the directory??????? Now I use MPLAB almost every day. But I'm not quite sure how to fix this issue. I have tried several lib/linker combinations. Does this have anything to do with the fact that I am using a newer version of MPLAB 7.5? |
|
#45
|
||||
|
||||
|
Re: 2007 Default Code?
MPLINK 4.02, Linker
Copyright (c) 2006 Microchip Technology Inc. Error - Coff file format for 'C:\First2007\Code\frc_camera_s_2\camera.o' is out of date. Errors : 1 Now I get his error???? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Modified default code gives "code violation" | scottmso | Programming | 8 | 10-02-2006 23:17 |
| problems using gyro/adc code with camera default code | tanstaafl | Programming | 7 | 22-01-2006 23:09 |
| user code to default code | phoenixomega001 | Programming | 5 | 09-01-2005 00:09 |
| Inserting Naviagation code into Default code? | actorindp | Programming | 3 | 28-01-2004 18:12 |
| default code | archiver | 2001 | 2 | 23-06-2002 22:53 |