Go to Post My goal as a mentor is to make myself irrelevant. Is that possible? Probably not. But this is one place I am willing to aim stupidly high. - Ian Curtis [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-01-2009, 14:27
penguain penguain is offline
Registered User
AKA: Barry Preston
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2007
Location: Bishop Miege High School
Posts: 18
penguain is an unknown quantity at this point
Camera tracking but not moving

In LV with the example code the camera is able to track where the trailer is in screen and if its friend or foe but when its not in frame it doesn't pass on to the servos to search for it and the camera doesn't fallow it if it moves
__________________
2007 Greater Kansas City Regional Champions
2008 Greater Kansas City Regional Finalists
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2009, 16:03
TotalChaos's Avatar
TotalChaos TotalChaos is offline
Registered User
AKA: Austin
FRC #2837 (Freebird Robotics)
Team Role: College Student
 
Join Date: Apr 2008
Rookie Year: 2006
Location: Gilbert AZ
Posts: 112
TotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud of
Send a message via MSN to TotalChaos
Re: Camera tracking but not moving

Be sure you have the jumper attached next to the PWM slot being used for the servo on your Digital Sidecar. Learned that lesson myself the long way.

- Austin
__________________
The 39th Aero Squadron - Team 39! (Visit our website!)
Team Role: 3 Years as Driver - College Student/Mentor!


Freebird Robotics - On a 1 year hiatus! (Visit our website!)
Arizona 2009: Semifinalists! (69 and 498), Delphi "Driving Tomorrow's Technology" Award
Reply With Quote
  #3   Spotlight this post!  
Unread 24-01-2009, 17:40
penguain penguain is offline
Registered User
AKA: Barry Preston
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2007
Location: Bishop Miege High School
Posts: 18
penguain is an unknown quantity at this point
Re: Camera tracking but not moving

already had checked that

ok i tweaked the code a little and now it does the searching and locks on the target.... but only follows the target a little bit not it full range
__________________
2007 Greater Kansas City Regional Champions
2008 Greater Kansas City Regional Finalists
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2009, 11:29
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Camera tracking but not moving

Determine whether it is a full range issue or a speed of response issue. If you can move the target slow enough and it will follow the target to full range, it is a problem with speed. If the slow movement also stops, then it is range.

My guess is that it is speed, in which case the first thing I'd do is to insert a WPI camera VI after the open to set the image size to 320 or 160 size. Also close any front panels you have open for debugging.

If it really is a range thing, make sure it isn't mechanical. Can you manually turn the gimbal that far? If it works manually, but not via SW, the example VI for moving the servo has SW limits which can be used to keep the camera from looking at the ceiling or floor for example. The initial limits were wide open for horizontal (0 - 169), but limited the vertical between 60 and 120 or something. If those have been changed and made default, they will limit the values sent to the servos.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2009, 16:38
Robo640's Avatar
Robo640 Robo640 is offline
Registered User
AKA: Matt
FRC #0640 (0640)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: New York City
Posts: 6
Robo640 is an unknown quantity at this point
Re: Camera tracking but not moving

My team has a similar problem as penguain does with the camera tracking.

Our camera has live feed when we run the Two Color Servo Camera Examplev1.vi or the Servo Camera Example.vi However our camera does not track when it is in Camera Display nor Gimbal Track.

For the Two Color Servo Camera Examplev1.vi our camera searches for the colors during Camera Display and the SERVOS can be manually moved when the knobs are turned in the Front Panel. However, when we switch to Gimbal Track, the camera is moving by itself searching for the colors but will never lock onto the specific color. (We have our fabric wrapped around a POOL NOODLE similarly to the trailer pipe.) We tried giving it some range and placed the colors vertically up as if it were on a trailer but the camera is not able to lock on and track it. What is my problem here?

For the Servo Camera Example.vi our camera is able to lock onto the Pink Color and track it according to the Front Panel of the VI. However, the camera does not physically move and the SERVOS are not responding. From browsing through Chief Delphi, I found out that this example needs a Watchdog to be added. My question is, will adding the Watchdog solve my problem or do I have to add/alter anything else? Also, how will I be able to track the Green Color??

Any comments or advice would be appreciated... THANKS!!
Reply With Quote
  #6   Spotlight this post!  
Unread 28-01-2009, 00:25
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,113
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: Camera tracking but not moving

Quote:
Originally Posted by Robo640 View Post
...the camera is moving by itself searching for the colors but will never lock onto the specific color...
Are you trying to show it just one color at a time? The Two Color Servo Camera Example looks for one color immediately above the other as a target.
Quote:
...will adding the Watchdog solve my problem or do I have to add/alter anything else?
Feeding the watchdog will keep it from disabling the PWM outputs. If your problem is that the servos don't move, this should solve it.
Reply With Quote
  #7   Spotlight this post!  
Unread 28-01-2009, 08:02
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Camera tracking but not moving

Use the Radio button to stop the servo and determine if the vision portion is working well. What you want to see is pinkish red and green in the mask one above the other. If you aren't picking up on both colors, you may need to find better lighting or adjust the numbers a bit.

If the colors mask well, then there are two possible problems.
1. You have build the gimbal differently than the code expected. It might be useful to disconnect one of the servos and test them independently with simple movements. If the gimbal seems to move opposite the direction it needs to, you can either fix it mechanically or open up the gimbal control VI and negate the proportion value on the panel. Make sure to make current values default when done.

2. It is also possible that you are holding the target upside down. the gimbal code only tracks the opposite color combination from what you say your robot is.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 29-01-2009, 18:42
Robo640's Avatar
Robo640 Robo640 is offline
Registered User
AKA: Matt
FRC #0640 (0640)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: New York City
Posts: 6
Robo640 is an unknown quantity at this point
Re: Camera tracking but not moving

I successfully got both VIs tracking however at times it seems to lose its tracking. It would continuously search and will never lock until I specifically put the color in front of the camera. Can anyone tell me why this is happening?? Thanks a lot.
Reply With Quote
  #9   Spotlight this post!  
Unread 30-01-2009, 00:20
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Camera tracking but not moving

The previous debugging approach should work on this too.

Determine if it is the camera thresholds or not. I'm assuming it is from your description. Turn off the gimbal and watch the mask to get a feel for when it loses the target. If it is because of poor lighting, you may not want to fix it, just find a better place to test. If it is because of tilting the target, ditto. If it seems like a desired case to track, you can open up the two color subVI, click on the debug HSL button and put the mouse over the image to see what part of the HSL threshold doesn't fit and by how much. You can then tweak the threshold numbers if you need to for that lighting.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 30-01-2009, 10:10
Robo640's Avatar
Robo640 Robo640 is offline
Registered User
AKA: Matt
FRC #0640 (0640)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: New York City
Posts: 6
Robo640 is an unknown quantity at this point
Re: Camera tracking but not moving

Thanks a lot, it seems to be working better now.
Reply With Quote
Reply


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
Axis Camera responding in the Vision Assistant but not in WindRiver DanDon C/C++ 3 11-01-2009 12:50
Camera locked in "tracking", but not tracking geeknerd99 Programming 1 18-02-2007 22:47
Camera will track one light, but not two? Kevin Watson Programming 2 01-02-2007 22:34
camera jerks and does not lock on when tracking kirkio Programming 2 10-02-2006 23:43
Moving robot while tracking with camera questions... Steve Orr Programming 6 02-02-2006 22:24


All times are GMT -5. The time now is 03:21.

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