Go to Post I love the dedication of Robotics kids. :) - Danielle H [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
  #31   Spotlight this post!  
Unread 10-01-2007, 13:16
amateurrobotguy's Avatar
amateurrobotguy amateurrobotguy is offline
Lead Programmer/Senior Engineer
no team
 
Join Date: Feb 2005
Rookie Year: 2000
Location: ****
Posts: 136
amateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these parts
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.
__________________
I quit FRC over 2 years ago (more if you're reading this past 2010).
  #32   Spotlight this post!  
Unread 10-01-2007, 13:28
Athena Athena is offline
Registered User
FRC #1676 (Pi-oneers)
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Montvale, NJ
Posts: 8
Athena is on a distinguished road
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   Spotlight this post!  
Unread 10-01-2007, 13:58
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: 2007 Default Code?

Quote:
Originally Posted by amateurrobotguy View Post
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.
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
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #34   Spotlight this post!  
Unread 10-01-2007, 14:06
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,284
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: 2007 Default Code?

Quote:
Originally Posted by Kevin Watson View Post
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?
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
  #35   Spotlight this post!  
Unread 10-01-2007, 15:40
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
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   Spotlight this post!  
Unread 10-01-2007, 16:06
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
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   Spotlight this post!  
Unread 10-01-2007, 16:40
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: 2007 Default Code?

Quote:
Originally Posted by dcbrown View Post
file: user_routines.c
Default_Routine() has following added lines in 2007 base
" p1_x = 255 - p1_y;
p1_y = 255 - pwm05;"
That's strange. Anyone understand why?
  #38   Spotlight this post!  
Unread 10-01-2007, 17:00
amateurrobotguy's Avatar
amateurrobotguy amateurrobotguy is offline
Lead Programmer/Senior Engineer
no team
 
Join Date: Feb 2005
Rookie Year: 2000
Location: ****
Posts: 136
amateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these parts
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
__________________
I quit FRC over 2 years ago (more if you're reading this past 2010).
  #39   Spotlight this post!  
Unread 10-01-2007, 17:02
amateurrobotguy's Avatar
amateurrobotguy amateurrobotguy is offline
Lead Programmer/Senior Engineer
no team
 
Join Date: Feb 2005
Rookie Year: 2000
Location: ****
Posts: 136
amateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these parts
Re: 2007 Default Code?

Quote:
Originally Posted by Astronouth7303 View Post
That's strange. Anyone understand why?
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.
__________________
I quit FRC over 2 years ago (more if you're reading this past 2010).
  #40   Spotlight this post!  
Unread 10-01-2007, 17:16
amateurrobotguy's Avatar
amateurrobotguy amateurrobotguy is offline
Lead Programmer/Senior Engineer
no team
 
Join Date: Feb 2005
Rookie Year: 2000
Location: ****
Posts: 136
amateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these parts
Re: 2007 Default Code?

Quote:
Originally Posted by dcbrown View Post
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
Yes, you have to follow the "Using last year's code.txt" if you want to use 2005 on ur 2006/2007 bot.
__________________
I quit FRC over 2 years ago (more if you're reading this past 2010).
  #41   Spotlight this post!  
Unread 10-01-2007, 17:29
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 454
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
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:
Originally Posted by Kevin Watson View Post
The best thing to do at this point is to spend some time thinking about what the camera will "see" from the starting area. It's important to know a few things:

1) The camera has a very wide field of view of ~60 degrees.
2) The camera will not always "see" two lights. Recent data taken on a regulation field shows that the camera will only detect a single light if it's within about +/- 25 degrees of rotation relative to the camera.
3) If two lights are detected by the camera, the camera will return a single rectangle around both lights.
4) If only one light is detected by the camera, the number of pixels reported by the camera will be small (~10).

-Kevin
Kevin, There seems to be some confusion about this years camera code. At the kickoff we were all told that this years camera code could support multiple targets. Is this the case? And if so. How? The code on your repository appears to be no different than last years. Does the new code independantly track multiple centroids? Or does it average the independant targets to produce one centroid? From the above statement it appears that the only way to differentiate between multiple and isolated targets is by the number of pixels. If two targets are "seen" by the camera, how do you direct the camera to select one of the targets?
  #42   Spotlight this post!  
Unread 10-01-2007, 17:41
Joel J's Avatar
Joel J Joel J is offline
do you..
no team
 
Join Date: May 2001
Rookie Year: 2000
Location: San Jose, CA
Posts: 1,445
Joel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond repute
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.
__________________
Joel Johnson

Division By Zero (229) Alumni, 2003-2007
RAGE (173) Alumni, 1999-2003
  #43   Spotlight this post!  
Unread 10-01-2007, 18:19
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Post Re: 2007 Default Code?

Quote:
Originally Posted by Mike Copioli View Post
Kevin, There seems to be some confusion about this years camera code. At the kickoff we were all told that this years camera code could support multiple targets. Is this the case? And if so. How?
Dave was referring to code written by FIRST engineering staff and included with EasyC.

Quote:
Originally Posted by Mike Copioli View Post
The code on your repository appears to be no different than last years.
The existing code already does much of the work for you. A lot of information about the state of the "rack" can be backed out of the dimensions of the blob (x1, y1, x2, y2), the blob's center of mass (mx, my), Number of color-matching pixels (pixels) and the ratio of color-matching pixels to total number of pixels (confidence) returned in the camera's t-packet. Have a look at terminal.c for a way to access the t-packet information when it arrives.

Quote:
Originally Posted by Mike Copioli View Post
Does the new code independantly track multiple centroids?
The camera cannot track multiple objects that are in view. FIRST's code does not track multiple lights.

Quote:
Originally Posted by Mike Copioli View Post
Or does it average the independant targets to produce one centroid?
The camera returns a rectangle that includes both lights, one on the left, the other on the right, and the center of mass somewhere in between. This information alone will tell you if one or two lights are visible as a single light will only light-up about ten pixels from the starting area.

Quote:
Originally Posted by Mike Copioli View Post
From the above statement it appears that the only way to differentiate between multiple and isolated targets is by the number of pixels. If two targets are "seen" by the camera, how do you direct the camera to select one of the targets?
One way is to rotate the camera until only one light is visible.

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
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #44   Spotlight this post!  
Unread 10-01-2007, 18:29
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 454
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
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   Spotlight this post!  
Unread 10-01-2007, 19:01
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 454
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
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????
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
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


All times are GMT -5. The time now is 15:33.

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