Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Finding green/pink flags (http://www.chiefdelphi.com/forums/showthread.php?t=71181)

The yellowdart 11-01-2009 16:07

Re: Finding green/pink flags
 
Have you updated all the firmware? Are you using all the most current software?

Chris1228 13-01-2009 16:10

Re: Finding green/pink flags
 
can someone help me program the camera to track colors in labview? i can get it to recognize a color but i dont know how to get motors/servos to move when it sees a color

wt200999 13-01-2009 20:51

Re: Finding green/pink flags
 
It appears as though an update on this matter has been posted (an example) :yikes:

http://first.wpi.edu/FRC/frcupdates.html

fordchrist675 18-01-2009 18:14

Re: Finding green/pink flags
 
Our programming team has tried all of the listed ideas, and still have had no luck, so we really need some help. Any suggestions please

Greg McKaskle 18-01-2009 18:22

Re: Finding green/pink flags
 
If you really want help, can you break it down? What works, what doesn't, what have you tried, what environment are you using?

My first suggestion would be to try running and learning from one of the vision examples.

Greg McKaskle

fordchrist675 18-01-2009 19:11

Re: Finding green/pink flags
 
We have set up the camera correctly, with the CAT-5 cable. We debugged the code, tried it with the bug , updated all firmware and software and gotten nothing. The CRIO is still getting nothing from the camera

fordchrist675 18-01-2009 19:12

Re: Finding green/pink flags
 
The CRIO kept posting error messages

Greg McKaskle 18-01-2009 21:51

Re: Finding green/pink flags
 
Make sure you are using the orange cross over cable. What are do the error messages.

Greg McKaskle

gokul 19-01-2009 08:20

Re: Finding green/pink flags
 
Quote:

Originally Posted by fordchrist675 (Post 803349)
The CRIO kept posting error messages

It will help if we know what these error messages are.

1. Use the Orange Crossover cable with the camera.
2. Make sure the camera is set correctly (Brightness = 40, Light settings = Flourescent 1) using the Axis instructions after connecting the Cam to your PC. Make sure you hit "Save" after the changes to the cam.
3. Make sure that the Green/Pink is the right way up as the program expects it - in the program (C/C++) there is a setting for ABOVE and BELOW. If the colors are reversed to what the program expects it won't find it.
4. Make sure that the cam is receiving signal by watching for the Green light around the lens.
5. Make sure your target is not too close or too bright.
6. For the C/C++ code, teams will have to play around a bit with cam settings and HSL values to make sure everything works.
7. The C/C++ code is based on SimpleRobot so once it is out of Autonomous, it won't go back to Auto even if you flip the DS Auto/Tele Switch - you will have reboot the cRIO with the Autonomous enabled on the DS.

aerophd2001 06-02-2009 20:04

Re: Finding green/pink flags
 
One thing that may solve many peoples problems:

>> Test the two-color tracking routines in a room WITHOUT windows <<

Daylight coming in from outside *can* change the color of the targets from the camera's perspective. You will want to test in a room with only fluorescent lighting.

Additionally, you will want to have equal lighting on the target from all directions (no shadows around the periphery of the target).

I hope these tips help.


All times are GMT -5. The time now is 17:58.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi