Go to Post Coming soon to an Earth near you; an Australian team (or 2). Stay tuned. - Elgin Clock [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 10-02-2007, 20:53
Ianuser Ianuser is offline
Registered User
FRC #0570
 
Join Date: Feb 2007
Location: new york
Posts: 64
Ianuser is an unknown quantity at this point
Please help me with my Camera problems!

So, I could really use some help with my camera. First of all it doesn't work. I plugged everything in the way the manual said to, and I turned on my electronics and everything else about my system works fine except for the camera. It doesn't seem to be getting power from the RC. I have it plugged into pwm11 for power which I commented out in the joystick mapping segment of code in user_routines.c(default_routine()) and I have the pan servo connected to pwm06 and the tilt to pwm07 which I changed in the tracking.h file #define PAN_SERVO pwm06, and the tilt respectively. I also plugged a pwm cable into the TLL adapter thingamajig and that into the RC on the bottom like it says and shows. When I turn on the stuff I'm not getting any lights on the camera at all and the servos have never moved. It says in the terminal window "No camera data..." and I found that in terminal.c So, its saying that I'm not receiving any packets. I understand that, but why? So, I'm not sure if it has to do with power or the transfer of data. Any suggestions as to what is causing this problem and how to fix it? I feel like I'm the only team who has yet to get their camera moving.

Also, I'm not sure if what I'm doing to get the degree for the tilt_servo to find the range of the bot to the rack is correct.
I wrote this in tracking.c at the very bottom:

unsigned float Find_Distance(void)
{
float radian;
float range;
radian = ((((angle I will measure in degrees that the tilt servo has to offer from down to up) / 256) * pi) / 180) * pwm07(which is my tilt_servo pwm);
range = (116 - (distance I have yet to measure between the floor and my camera because we haven't placed it yet)) / tan(radian);
}

I read on another thread that the angle has to be in radians for the Tan() function to take. Also, does it matter in which source file I place this function? SO, my real questions are, Does anything about what I wrote make sense? And how does this compare to the:
pan angle = ((current pan PWM) - (pan center PWM)) * degrees/pan PWM step ?(other than I'm looking for tilt rather than pan). Do I have to subtract my pwm07 by something like you did in this one? Sorry if I'm being confusing, but I'm trying to understand all of this at once. (My team is made up of 5 people and I'm the only electrician and the only programmer and I don't have much experience as a junior in high school.) Anyway, one thing at a time. Please help me if you can! Thanks
  #2   Spotlight this post!  
Unread 10-02-2007, 21:07
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Please help me with my Camera problems!

No power to the camera? No motion of the servos? It sounds like you don't have your 7.2v backup battery plugged in. That's where the camera and servos get their power.
  #3   Spotlight this post!  
Unread 10-02-2007, 21:17
Ianuser Ianuser is offline
Registered User
FRC #0570
 
Join Date: Feb 2007
Location: new york
Posts: 64
Ianuser is an unknown quantity at this point
Re: Please help me with my Camera problems!

Thanks very much. I've been readin up on this for quite some time and probably about 2 minutes before you posted your solution I came upon kevin's FAQ and noticed that I needed the backup battery hooked up. I remember taking it out to charge it on Friday and I'm not sure if I put it back in or not, so I'm guessing that I forgot to do that when I set up the camera. I'll check on Monday when I see it all again, and I'll let you know then. Thanks a lot! (Any suggestions for the code?)
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
Camera Code Help Please The yellowdart Programming 1 10-02-2007 15:45
again, problems with the camera razer Programming 4 02-02-2007 11:50
Please help. I've had it with this camera Inverted Programming 6 14-01-2007 22:35
Problems with PID- PLEASE HELP!!! thinkpad Programming 12 10-02-2005 00:18
Radio Problems!! Please help arpus maximus Control System 23 21-05-2004 20:30


All times are GMT -5. The time now is 11:00.

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