Go to Post Pit Tools Distraction=bad - Lil' Lavery [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
  #76   Spotlight this post!  
Unread 14-03-2006, 20:01
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: Problem with the past

Quote:
Originally Posted by Fritz
We are currently experiencing a problem getting the 2005 RC to accept any code that uses the current default camera code. It won't accept, at all, and the hex is no larger than any of our other working code... infact, the hex is smaller! If anyone can help, it'd be muuuuch appreciated.

ps. we have set it up with the old linker and even the new ones to see if it will work...
We did this without problems just in case we would need to switch
to the 2005 controller. We started with the 2005 default code,
version 2.2 without the camera code in it. We then added the 2006
camera code .c and .h files, and our own .c and .h files that handled
other interrupt based functionality, to the folder and they to the project.
You will have to delete the IFI serial driver and header from the folder
and project, and you will have to change stdio to the correct printf_lib
include. You then have to fold in your changes to user_routines and
user_routines_fast. It will work if you catch all the nits, and there
are a few.
  #77   Spotlight this post!  
Unread 20-03-2006, 09:49
DICKIE DICKIE is offline
Registered User
FRC #1355 (Stallions)
 
Join Date: Mar 2006
Location: Wingham, Ontario, Canada
Posts: 3
DICKIE is on a distinguished road
Re: 2006 CMUcam2 Code

As for replacing a servo with a different type of motor, that is a bit of a challenge. Servos have internal feedback which allows you to tell it to go to a particular position. You may notice that if you have a servo powered and you try to turn it, it fights back to keep the position the same. The servo just has a small motor inside, a controller, and a sensor for feedback. If you want a globe or fisher price motor to act like a servo, then you need those other two components. You can use a sensor like the Gear Tooth Sensor included in the kit as your feedback. For the controller, you can use the FRC and write software! The motor controllers that have available, (victors, and of less usefulness, the spikes) only control the speed of the motors, not the position. This is because they don't know where they are, and therefore don't know where to go from there (where?). Hopefully the servos will work for you, but if not, it's possible to use other motors instead. It's just a lot more work. If you decide you do need a controller and motors, do some research/googling for PID control. It's a pretty straight forward method of control that gives good results. There's probably even code floating around out there if you look hard enough.


HELP!! can we not avoid using the gear tooth sensor by setting our fischer motor, globe, etc. at a low enough speed? then when it finds the light to stop?? if this is possible, where in the code do i do this. i'm not the greatest programmer but i need to figure this one out!! if canybody can help that'd be great
  #78   Spotlight this post!  
Unread 21-03-2006, 11:24
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: 2006 CMUcam2 Code

Quote:
Originally Posted by DICKIE
HELP!! can we not avoid using the gear tooth sensor by setting our fischer motor, globe, etc. at a low enough speed? then when it finds the light to stop?? if this is possible, where in the code do i do this. i'm not the greatest programmer but i need to figure this one out!! if canybody can help that'd be great
The camera searching/tracking code is in the file tracking.c in the function Servo_Track(). You will need to read the code to understand what the algorithm is doing.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
  #79   Spotlight this post!  
Unread 10-02-2007, 19:24
owner_master owner_master is offline
Registered User
no team
 
Join Date: Feb 2007
Location: Canada
Posts: 3
owner_master is an unknown quantity at this point
Re: 2006 CMUcam2 Code

ok where can i get the 2006 code for the camera i don't see in on the website. What is the file called?
  #80   Spotlight this post!  
Unread 10-02-2007, 19:29
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: 2006 CMUcam2 Code

Quote:
Originally Posted by owner_master View Post
ok where can i get the 2006 code for the camera i don't see in on the website. What is the file called?
Go to: http://kevin.org/frc/ and scroll a little more than halfway down. Under the section titled "2007 FRC-RC Example Code and Utilities", there is a list of ZIP files that contain code for MPLAB. If you are writing in easyC, these probably won't be of any use to you; the easyC code downloads are at: http://www.intelitekdownloads.com/easyCPRO/ under "2007 Kickoff Demo Code".

JBot
__________________
Aren't signatures a bit outdated?
  #81   Spotlight this post!  
Unread 10-02-2007, 20:08
owner_master owner_master is offline
Registered User
no team
 
Join Date: Feb 2007
Location: Canada
Posts: 3
owner_master is an unknown quantity at this point
Re: 2006 CMUcam2 Code

well i went there and these are the four file frc_camera_s_21.zip, frc_camera_21.zip,frc_camera_s_2.zip, frc_camera_2.zip. i am looking for one with ends in ....._2006.zip and it has to be for Mplab
  #82   Spotlight this post!  
Unread 10-02-2007, 20:17
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: 2006 CMUcam2 Code

Quote:
Originally Posted by owner_master View Post
well i went there and these are the four file frc_camera_s_21.zip, frc_camera_21.zip,frc_camera_s_2.zip, frc_camera_2.zip. i am looking for one with ends in ....._2006.zip and it has to be for Mplab
Kevin has updated his site. The files you see are the replacements for the old '06 stuff. If you are looking to base your code off of Kevin's code, you probably want frc_camera_21.zip, and if you are looking to integrate camera code into an existing project, you probably want to get the streamlined version, frc_camera_s_21.zip. It depends on what you are using it for.

JBot
__________________
Aren't signatures a bit outdated?
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
Out of the Box Camera Code russell Programming 9 21-10-2009 05:28
CMUCam2 code (FRC and EDU?) Amber Programming 0 15-02-2005 22:23
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11
heres the code. y this not working omega Programming 16 31-03-2004 15:18


All times are GMT -5. The time now is 13:21.

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