Go to Post It is impossible to be grumpy about anything when eating biscotti made by one's beautiful wife, drinking tea sweetened by one's own honey, warmed by a wood stove, and with a dog asleep on one's foot. Simply impossible. - pfreivald [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
  #1   Spotlight this post!  
Unread 12-01-2007, 11:43
Lablabla Lablabla is offline
Registered User
AKA: Carmel Barak
FRC #1957 (LighTeam)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 25
Lablabla is an unknown quantity at this point
Camera & Default Code

Hi,
The zip file downloaded (Camera streamlined version from kevin.org/frc) contains everything, the user_routines.c and all that. should i use this as the default code for 2007 and add my autonomous mode and joystick controls and all that to that files? or is there a way to add the camera thingies to the 2007 Default code?
Plus, If I Remember correclty, the readme.txt file says that serial_port.c or something like this, also available at kevin.org/frc need to be installed, I downloaded that file, and again, it contains all the user_routines.c and stuff, what is going on? can someone explain to me how to mix up all the files so i can get the camera working with my default code?

Thanks,
Carmel
__________________
LighTeam #1957
2006 GM/Technion Israel Regional Finalist (Robot: W.Bob)

Attending: Israel GM\Technion Regional (Robot: Laika)

Last edited by Lablabla : 12-01-2007 at 11:54.
  #2   Spotlight this post!  
Unread 12-01-2007, 12:43
Robby's Avatar
Robby Robby is offline
Registered User
AKA: Kevin Beranek
FRC #0269 (Cooney Robotics)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Wisconsin
Posts: 47
Robby has a spectacular aura aboutRobby has a spectacular aura about
Re: Camera & Default Code

Yes, you can use that as your default code very easily. You do not need to add the serial port code to it because it is already there. The readme is there so that people who want to copy over only the camera related portions of the code know what needs to be included to get it to work.
  #3   Spotlight this post!  
Unread 12-01-2007, 12:47
Lablabla Lablabla is offline
Registered User
AKA: Carmel Barak
FRC #1957 (LighTeam)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 25
Lablabla is an unknown quantity at this point
Re: Camera & Default Code

So basically,
I open the camera.mpw and work on the user_routines.c and stuff as if it was my default code?
Thanks
Carmel
__________________
LighTeam #1957
2006 GM/Technion Israel Regional Finalist (Robot: W.Bob)

Attending: Israel GM\Technion Regional (Robot: Laika)
  #4   Spotlight this post!  
Unread 12-01-2007, 12:48
Robby's Avatar
Robby Robby is offline
Registered User
AKA: Kevin Beranek
FRC #0269 (Cooney Robotics)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Wisconsin
Posts: 47
Robby has a spectacular aura aboutRobby has a spectacular aura about
Re: Camera & Default Code

You can definitely do that.
  #5   Spotlight this post!  
Unread 12-01-2007, 12:59
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: Camera & Default Code

Quote:
Originally Posted by Lablabla View Post
Hi,
The zip file downloaded (Camera streamlined version from kevin.org/frc) contains everything, the user_routines.c and all that. should i use this as the default code for 2007 and add my autonomous mode and joystick controls and all that to that files? or is there a way to add the camera thingies to the 2007 Default code?
Plus, If I Remember correclty, the readme.txt file says that serial_port.c or something like this, also available at kevin.org/frc need to be installed, I downloaded that file, and again, it contains all the user_routines.c and stuff, what is going on? can someone explain to me how to mix up all the files so i can get the camera working with my default code?

Thanks,
Carmel
I'll update the zip files with IFI's newer linker script and library file this weekend. If you can't wait, drop IFI's newer linker script files (*.lkr) and library files (*.lib) into your build directory and you should be in good shape.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #6   Spotlight this post!  
Unread 12-01-2007, 13:28
Lablabla Lablabla is offline
Registered User
AKA: Carmel Barak
FRC #1957 (LighTeam)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 25
Lablabla is an unknown quantity at this point
Re: Camera & Default Code

I will wait,
what zip file? the one for the camera?
and then what will i have to do to get working on the complete code (including camera and everything, the code that will be used in the competition)?
Thanks,
Carmel
__________________
LighTeam #1957
2006 GM/Technion Israel Regional Finalist (Robot: W.Bob)

Attending: Israel GM\Technion Regional (Robot: Laika)
  #7   Spotlight this post!  
Unread 12-01-2007, 14:07
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: Camera & Default Code

Quote:
Originally Posted by Lablabla View Post
I will wait,
what zip file? the one for the camera?
and then what will i have to do to get working on the complete code (including camera and everything, the code that will be used in the competition)?
Thanks,
Carmel
The software in the frc_camera_2.zip and frc_camera_s_2.zip files contains IFI's default code plus camera code that will find and track the green lights. In the next few days I'll update the code to also include a new PWM driver that will give you more control over your servos and cure PWMs 13-16 of their jitter.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #8   Spotlight this post!  
Unread 12-01-2007, 14:18
Lablabla Lablabla is offline
Registered User
AKA: Carmel Barak
FRC #1957 (LighTeam)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 25
Lablabla is an unknown quantity at this point
Re: Camera & Default Code

Thanks, that's what i was looking for
Where can i find out when you've updated the file?
Thanks,
Carmel
__________________
LighTeam #1957
2006 GM/Technion Israel Regional Finalist (Robot: W.Bob)

Attending: Israel GM\Technion Regional (Robot: Laika)
  #9   Spotlight this post!  
Unread 13-01-2007, 13:20
aviv aviv is offline
Registered User
FRC #1657
 
Join Date: Jan 2006
Location: Israel
Posts: 34
aviv will become famous soon enough
Re: Camera & Default Code

You can find it on Kevin's website.
http://kevin.org/frc/
__________________
Winner of 2006 GM/Technion Israel Regional
Chairman's Award 2006 GM/Technion Israel Regional
Best Website 2006 GM/Technion Israel Regional

HaMosad Robotics #1657
  #10   Spotlight this post!  
Unread 16-01-2007, 16:04
dmellich dmellich is offline
Registered User
AKA: Mr. E
FRC #1251 (TechTiger Robotics)
Team Role: Mentor
 
Join Date: Dec 2002
Rookie Year: 2000
Location: Coconut Creek, FL
Posts: 79
dmellich has a spectacular aura aboutdmellich has a spectacular aura aboutdmellich has a spectacular aura about
Re: Camera & Default Code

We have managed to get the camera tracking beautifully. Thanks so much Kevin. I have a question though.

We were able to change the PWM's that the servo's use (PWM01/PWM02) to PWM07 and PWM08. Everything still works fine i.e. camera tracks. Our question is, where do we set PWM01/PWM02 so that they are now free for us to use with a joystick (y-axis) vis-a-vis the default non-camera code. Thanks for your help.
__________________
David M. Ellich
Team 1251, TechTiger Robotics
South Florida Regional Planning Committee
"It's Cool to be Smart"
  #11   Spotlight this post!  
Unread 16-01-2007, 17:16
Lablabla Lablabla is offline
Registered User
AKA: Carmel Barak
FRC #1957 (LighTeam)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 25
Lablabla is an unknown quantity at this point
Re: Camera & Default Code

If I understood your question:
in the project downloaded from kevin's site
the Default_Routines() function in the user_routines.c is commented
uncomment it (where it's being called) and edit it at the bottom of user_routines.c
you decide what pwm is for what joystick axis at that file too.
If I didn't get your question right, forgive me and ignore the answer
Carmel
__________________
LighTeam #1957
2006 GM/Technion Israel Regional Finalist (Robot: W.Bob)

Attending: Israel GM\Technion Regional (Robot: Laika)
  #12   Spotlight this post!  
Unread 16-01-2007, 18:33
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: Camera & Default Code

Quote:
Originally Posted by dmellich View Post
...Our question is, where do we set PWM01/PWM02 so that they are now free for us to use with a joystick (y-axis) vis-a-vis the default non-camera code. Thanks for your help.
I think Q22 in the CMUCam2 FAQ answers your question. If not, please let me know.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #13   Spotlight this post!  
Unread 16-01-2007, 19:15
dmellich dmellich is offline
Registered User
AKA: Mr. E
FRC #1251 (TechTiger Robotics)
Team Role: Mentor
 
Join Date: Dec 2002
Rookie Year: 2000
Location: Coconut Creek, FL
Posts: 79
dmellich has a spectacular aura aboutdmellich has a spectacular aura aboutdmellich has a spectacular aura about
Re: Camera & Default Code

Kevin, I remember reading through your Q&A and seeing that. My apologies for not paying better attention. Thanks again for your help.
__________________
David M. Ellich
Team 1251, TechTiger Robotics
South Florida Regional Planning Committee
"It's Cool to be Smart"
  #14   Spotlight this post!  
Unread 28-01-2007, 18:10
michael714's Avatar
michael714 michael714 is offline
Registered User
FRC #3863 (Pantherbotics)
Team Role: Teacher
 
Join Date: Apr 2006
Rookie Year: 2007
Location: Newbury Park, CA
Posts: 46
michael714 is on a distinguished road
Re: Camera & Default Code

Dear Kevin,
We are using your edu_camera.zip code with our EDU and it's working perfectly. You are awesome! Thanks.

Of course, the question comes to my mind, are we missing anything by not using the frc_camera21.zip code? The newest date on the files in the edu zip is 1/22/06 and it looks like you've updated several files since then in the 21 zip.

Is the only difference between the camera21 and the edu code just the linker and lib files because of the different PIC?

Your time and efforts are greatly appreciated.
  #15   Spotlight this post!  
Unread 28-01-2007, 18:25
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: Camera & Default Code

Quote:
Originally Posted by michael714 View Post
Dear Kevin,
We are using your edu_camera.zip code with our EDU and it's working perfectly. You are awesome! Thanks.

Of course, the question comes to my mind, are we missing anything by not using the frc_camera21.zip code? The newest date on the files in the edu zip is 1/22/06 and it looks like you've updated several files since then in the 21 zip.

Is the only difference between the camera21 and the edu code just the linker and lib files because of the different PIC?

Your time and efforts are greatly appreciated.
Looks like a few people want to use the EDU-RC with the camera, so I'll look into updating the EDU build with newer camera code. My kids are trying to drag me off to the "Epic Movie", so it'll be tonight or tomorrow before anything is up.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
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
Possible danger using default camera code Mike Programming 3 07-02-2006 23:28
default camera code edit Windward Programming 8 25-01-2006 18:33
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
Getting the Camera and Default Code to Work nukem Programming 5 18-01-2006 11:48
Default Camera Code Flowchart cprogrammer Programming 1 27-02-2005 11:04


All times are GMT -5. The time now is 01:28.

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