Go to Post When you score a Supercell on your own alliance it has a tendency to sway a match... - EricLeifermann [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 26-01-2005, 16:35
Obi's Avatar
Obi Obi is offline
Registered User
#0870
 
Join Date: Jan 2004
Location: Southold
Posts: 18
Obi is an unknown quantity at this point
camera_track_update()

After I initialize the camera with exposure values and find_color, I try to use camera_track_update(), checking to see if it was recieved by printing in to the screen, but I never get a value besides 0. Any help please?
__________________
[hr]
Southold Robotics Team #870 (RICE)
  #2   Spotlight this post!  
Unread 29-01-2005, 21:32
Zalumaskov's Avatar
Zalumaskov Zalumaskov is offline
Premier
no team
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Place
Posts: 12
Zalumaskov is on a distinguished road
Re: camera_track_update()

I also have the same problem when trying to use camera_track_update() in user_autonomous.

It works great in the default routine first provided but for reason it seems to be always waiting for data in camera_track_update(). Isn't it supposed to stop waiting for data after camera_find_color is called?


Any help is appreciated.
__________________
I would change the world but I don't have the source code.
  #3   Spotlight this post!  
Unread 03-02-2005, 20:50
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: camera_track_update()

Aren't you supposed to use camera_stop() before calling any other functions after camera_track_update()?

I may be wrong,
Hope this helps,
Dan
  #4   Spotlight this post!  
Unread 03-02-2005, 21:36
ace123's Avatar
ace123 ace123 is offline
Registered User
AKA: Patrick Horn
FRC #0008 (Paly Robotics - http://robotics.paly.net/)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Palo Alto, CA
Posts: 50
ace123 has a spectacular aura aboutace123 has a spectacular aura about
Send a message via AIM to ace123
Question Re: camera_track_update()

I'm having the same problems with camera_track_update(). It always returns 0 on the CMUCam.

I have a few questions that would help a lot if they could be answered.

The GUI can recieve pictures and data, although it freezes a *lot* and starts saying "Waiting for Data" after using the Java program too much.

I also tried using hyperterminal, but it takes about five seconds for it to echo any output, making it unusable. Do you know if it is easy or possible to start a color tracking mode from HyperTerminal?

Somebody from my team was able to get the camera into a "demo mode" or something like that, and then the camera swiveled to follow the colors. From there, would it be possible to read the values from the servo pwms so that the program could use them?

Does anybody know some good API documentation for the user_camera code that works reliably? The CMU Cam manual is not too helpful about these problems.

Also, slightly off-topic, but it seems like many people have had the camera fail to work when plugged into the 7.2v PWM port, while it works in the Digital I/O.
I have had this problem as well after using the cam for more than a few minutes. Do you think this may affect the camera in any way, causing it not to send data back to the serial port?
__________________
-Patrick Horn, Paly Robotics

Check out the space simulator called Vega Strike, modelled after the space simulator games Elite and Wing Commander. It's Open Source too!
If you have ever played Wing Commander, or especially Privateer, and had a feeling of nostalga derived from the you will enjoy these two Vega Strike mods: Privateer Gemini Gold and Privateer Remake!
I'm working on adding multiplayer support this year...
  #5   Spotlight this post!  
Unread 04-02-2005, 11:12
Zalumaskov's Avatar
Zalumaskov Zalumaskov is offline
Premier
no team
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Place
Posts: 12
Zalumaskov is on a distinguished road
Re: camera_track_update()

I found out what was wrong with mine...

Basically it seems that i must tell it to find the color again after camera_set_servos for scanning purposes.
__________________
I would change the world but I don't have the source 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


All times are GMT -5. The time now is 02:50.

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