Go to Post Frank is frank, and I like that. - rsisk [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 27-01-2006, 01: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
*** CMUcam2 Frequently-Asked-Questions ***

I've started a CMUcam2 frequently-asked-questions document here: http://kevin.org/frc/camera. If you have questions that you think should be added to the document, please post them here.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #2   Spotlight this post!  
Unread 28-01-2006, 23:45
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: CMUcam2 Frequently-Asked-Questions

Q3: Where do we plug in the pan and tilt servos?
A3: By default the pan servo is attached to the robot controller's PWM 1 output and the tilt servo is plugged into the the robot controller's PWM 2 output. These assignments can be changed in camera.h.


Don't you mean "tracking.h" ?
  #3   Spotlight this post!  
Unread 29-01-2006, 00:09
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: CMUcam2 Frequently-Asked-Questions

Quote:
Originally Posted by bear24rw
Q3: Where do we plug in the pan and tilt servos?
A3: By default the pan servo is attached to the robot controller's PWM 1 output and the tilt servo is plugged into the the robot controller's PWM 2 output. These assignments can be changed in camera.h.


Don't you mean "tracking.h" ?
DOH! Thanks for pointing that out <sheepish-grin>.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #4   Spotlight this post!  
Unread 30-01-2006, 12:01
mallot1243's Avatar
mallot1243 mallot1243 is offline
Registered User
FRC #1243
 
Join Date: Apr 2004
Rookie Year: 2004
Location: Swartz Creek, MI
Posts: 27
mallot1243 is an unknown quantity at this point
Re: CMUcam2 Frequently-Asked-Questions

what is the difference in using the PWM outputs and the Servo0, 1 on the camera?
  #5   Spotlight this post!  
Unread 30-01-2006, 12:14
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: CMUcam2 Frequently-Asked-Questions

Quote:
Originally Posted by mallot1243
what is the difference in using the PWM outputs and the Servo0, 1 on the camera?
The code currently uses the robot controller's PWM outputs to control the pan and tilt servos. I'm working on a version of tracking.c that will allow you to use robot controller or CMUcam2 PWM outputs. I'll post it if I can get it to work correctly.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #6   Spotlight this post!  
Unread 30-01-2006, 22:08
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: CMUcam2 Frequently-Asked-Questions

The CMUcam2 Frequently-Asked-Questions document has been substantially updated in the last day or so. Included is a troubleshooting checklist. It can be found here: http://kevin.org/frc/camera.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #7   Spotlight this post!  
Unread 31-01-2006, 19:35
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: CMUcam2 Frequently-Asked-Questions

In the thread titled "Code Errors with Bells and Whistles" I detailed a problem I encountered when I rewrote part of your code so the camera scans in both directions. Since you wrote the origanal, i was wondering if I possibly just left out a neccassary intailization line or something. Can you give any suggestions?
  #8   Spotlight this post!  
Unread 01-02-2006, 00:47
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: CMUcam2 Frequently-Asked-Questions

Quote:
Originally Posted by Ryan O
In the thread titled "Code Errors with Bells and Whistles" I detailed a problem I encountered when I rewrote part of your code so the camera scans in both directions. Since you wrote the origanal, i was wondering if I possibly just left out a neccassary intailization line or something. Can you give any suggestions?
Send me the code and I'll have a look.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #9   Spotlight this post!  
Unread 01-02-2006, 08:29
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: CMUcam2 Frequently-Asked-Questions

Quote:
Originally Posted by Kevin Watson
Send me the code and I'll have a look.

-Kevin

Ok, I e-mail it to you if it doesn't work. I made a couple changes. One things was to move the intailization to the very top of the code. Before, I was calling Tracking_Config_Data info before intailization, so that might have been the problem. If it was I'll post here to let you know that it was fixed. Otherwise I should have it sent by five tonight. Thanks for the help.
  #10   Spotlight this post!  
Unread 08-02-2006, 11:57
mallot1243's Avatar
mallot1243 mallot1243 is offline
Registered User
FRC #1243
 
Join Date: Apr 2004
Rookie Year: 2004
Location: Swartz Creek, MI
Posts: 27
mallot1243 is an unknown quantity at this point
Re: CMUcam2 Frequently-Asked-Questions

Can you use a different motor to control pan function? if so what would the code have to look like?
  #11   Spotlight this post!  
Unread 08-02-2006, 18:40
bhsrobotics1671's Avatar
bhsrobotics1671 bhsrobotics1671 is offline
Andrew Nabors
AKA: Andrew Nabors
FRC #1671 (Buchanan Bird Brains)
Team Role: Coach
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Clovis, CA
Posts: 284
bhsrobotics1671 is a splendid one to beholdbhsrobotics1671 is a splendid one to beholdbhsrobotics1671 is a splendid one to beholdbhsrobotics1671 is a splendid one to beholdbhsrobotics1671 is a splendid one to beholdbhsrobotics1671 is a splendid one to beholdbhsrobotics1671 is a splendid one to behold
Talking Re: CMUcam2 Frequently-Asked-Questions

Quote:
Originally Posted by Kevin Watson
I've started a CMUcam2 frequently-asked-questions document here: http://kevin.org/frc/camera. If you have questions that you think should be added to the document, please post them here.

-Kevin

how do you re-upload the tracking.h file to the camera again after modifying it?

thankss
-bunch of freshman noobs from clovis, CA
team 1671
  #12   Spotlight this post!  
Unread 08-02-2006, 18:46
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: CMUcam2 Frequently-Asked-Questions

Quote:
Originally Posted by mallot1243
Can you use a different motor to control pan function? if so what would the code have to look like?
Different . First, the motor does not have PWM versus Angle, thus you'd have to find some method of finding how to fix it so that it did, then you'd have to figure out how you want to keep track of what angle it is at. Basically it is complicated.
__________________
My Blog!
  #13   Spotlight this post!  
Unread 08-02-2006, 18:55
nehalita's Avatar
nehalita nehalita is offline
Robots are friends
AKA: tagger fanatic
FRC #1345 (Platinum Dragons); FRC# 97 (RoboRuminants)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Ft. Laud, FL
Posts: 870
nehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond repute
Send a message via AIM to nehalita Send a message via MSN to nehalita Send a message via Yahoo to nehalita
Re: CMUcam2 Frequently-Asked-Questions

1) I was trying to drive the robot and operate the camera at the same time so I enabled "Default_Routine" in the Process_Data_From_Master_uP function but I think it conflicted with the camera code (i'm not sure if that's right) because the camera wouldn't work at all. So I just put whatever I needed before "putdata" [the pwms, relays, etc.]
i don't know if my assumptions were right or if i messed up but i think you should address this in some form of a question (that I obviously can't come up with right now).

2) This is a stupid mistake, but someone else might have done it before. If you "accidentally" switch the servos hooked up to the RC, you get that "searching searching searching" thing also and it took me an hour to figure that one out (it's always gotta be the simple things that take forever to figure out).

3) I think you should put something at the top or inside the code about being careful when you load the code for the first time. I had the pwms hooked up to the camera and my motors hooked up to pwm01 and pwm02. So, as the camera tracked the green light, the robot went crazy and i nearly killed myself. After reading the FAQs, I figured out why but maybe if there's a warning somewhere inside the code, it won't happen to another team.

4) When i started using the camera for the first few times, i had the serial cable hooked up to the camera along with the pwm to the ttl port. It's obvious to me now that I can't have both hooked up to the camera at the same time but it wasn't then. You could put that in your FAQs

....those are all the mistakes i can remember but i'm sure i have plenty more to come. =)

btw, after my series of errors, my camera worked wonderfully. you're the man kevin. my whole team's amazed how "i got" the camera to dance around but really, it was all your hard work and i got the credit for it. great job.
oh, and the FAQs helped a lot!
__________________
"Relativity applies to physics, not ethics." Thank you Einstein
MIT '10

Proud Member of H.I.L.
The PLATINUM DRAGONS are on FIRE!

Last edited by nehalita : 08-02-2006 at 19:16.
  #14   Spotlight this post!  
Unread 08-02-2006, 19:23
bhsrobotics1671's Avatar
bhsrobotics1671 bhsrobotics1671 is offline
Andrew Nabors
AKA: Andrew Nabors
FRC #1671 (Buchanan Bird Brains)
Team Role: Coach
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Clovis, CA
Posts: 284
bhsrobotics1671 is a splendid one to beholdbhsrobotics1671 is a splendid one to beholdbhsrobotics1671 is a splendid one to beholdbhsrobotics1671 is a splendid one to beholdbhsrobotics1671 is a splendid one to beholdbhsrobotics1671 is a splendid one to beholdbhsrobotics1671 is a splendid one to behold
Re: CMUcam2 Frequently-Asked-Questions

Quote:
Originally Posted by Kevin Watson
I've started a CMUcam2 frequently-asked-questions document here: http://kevin.org/frc/camera. If you have questions that you think should be added to the document, please post them here.

-Kevin

Kevin We Need Your Help Re-Uploading the tracking.h file

Anyone!?!?!?
__________________
Buchanan Bird Brains - FRC Team 1671
2015 FIRST World Champions
118, 1678, 1671, 5012
  #15   Spotlight this post!  
Unread 09-02-2006, 11:00
mallot1243's Avatar
mallot1243 mallot1243 is offline
Registered User
FRC #1243
 
Join Date: Apr 2004
Rookie Year: 2004
Location: Swartz Creek, MI
Posts: 27
mallot1243 is an unknown quantity at this point
Re: CMUcam2 Frequently-Asked-Questions

I should have explained my self a little more. We're planning on taking the pan servo off and using the code to control a turret, is there a way to develope a potentiometer structure in replacement of the servo function?

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
Questions you've been asked about robotics JamizzleHavok13 Chit-Chat 32 09-08-2009 16:16
#1 The Journey of a FIRST Graduate: Questions Ken Leung General Forum 12 27-07-2005 18:24
Please post questions Chairman's judges asked!! Roxanna V Chairman's Award 0 05-04-2005 10:33
Q/A questions so far.. AmyPrib Rules/Strategy 49 28-01-2005 08:39
**FIRST EMAIL**/Autodesk Inventor Training and Technical Questions Information Rich Wong FIRST E-Mail Blast Archive 0 07-12-2004 17:22


All times are GMT -5. The time now is 23:59.

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