|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
two color tracking code
I have been trying to program the camera to track the colors since 9 this morning and havent been able to figure it out...i have looked at the sample code but am still having trouble....any help would be appreciated
~Fighting Rednecks~ |
|
#2
|
|||
|
|||
|
Re: two color tracking code
Have you tried running the sample code?
It assumes a gimbal, but it is a good learning experience even if you won't use it later. Greg McKaskle |
|
#3
|
||||
|
||||
|
Re: two color tracking code
I can't get the sample code to run...I get a failed to connect to real time target error
|
|
#4
|
|||
|
|||
|
Re: two color tracking code
Labview or windriver?
The sample code does track so did you not get a successful run? What happened? |
|
#5
|
||||
|
||||
|
Re: two color tracking code
Its in labview, the code doesn't even load, need help please thanks.
![]() |
|
#6
|
||||
|
||||
|
Re: two color tracking code
Does anyone know were i can find the Gimble Control icon in the labview palette
|
|
#7
|
|||
|
|||
|
Re: two color tracking code
The steps should be open the lvproj file, change the target IP address using the properties dialog to match yours -- I think it defaults to 10.0.0.2.
Then open the top VI and it should download. As a smaller step, you can right click on the target and choose to simply connect. If that doesn't work, start pinging stuff to find which element is unreachable. Hopefully it loads and runs. As for a Gimbal control icon in the palette, there is a Gimbal control subVI in that example, but it isn't in the palette. That subVI is built on top of the servo stuff and some math. It is OK as an example, but really difficult to generalize a gimbal control to put into WPI. Greg McKaskle |
|
#8
|
||||
|
||||
|
Re: two color tracking code
we can get the camera to work but it dosent track the colors....can anyone help us
|
|
#9
|
||||
|
||||
|
Re: two color tracking code
Hi,
When you say you have gotten the camera to work, to what extent is it working? In the Two Color tracking example, are you able to see the camera view in the Image block on the front panel? If we know more specifically what you have been able to do, we can recommend the steps that come next to getting the camera tracking part to work. Good luck! Evan |
|
#10
|
||||
|
||||
|
Re: two color tracking code
Yes..the image comes up in the image block and it locks onto the color but the camera dosent follow it if we move the colors
|
|
#11
|
|||
|
|||
|
Re: two color tracking code
Are your servos hooked up? Remember, you need to put the jumpers on the two pins next to where you plug the servo PWMs in or they wont get power. You can check if the servos are being powered when the programs running by physically trying to turn them a bit. The servo should resist and correct itself.
|
|
#12
|
||||
|
||||
|
Re: two color tracking code
we can manually move the servos from the front panel but they wont work when we need them to track
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multiple Targets in "LabVIEW Sample two-color target tracking code" | markulrich | NI LabVIEW | 7 | 29-01-2009 11:52 |
| Two Color Tracking Demo | Bharat Nain | Programming | 43 | 25-01-2009 18:58 |
| Two color tracking problem | nadavsen2 | Programming | 3 | 19-01-2009 14:44 |
| 449's code for tracking two colors | jacobhurwitz | NI LabVIEW | 4 | 15-01-2009 21:19 |
| Tracking Color? | haywirerobotics | Programming | 0 | 14-01-2006 13:55 |