Go to Post Valentine's day, who has time for Valentine's day?????? I have code to write!! - paulcd2000 [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 11-02-2009, 13:08
frcchile's Avatar
frcchile frcchile is offline
Registered User
FRC #2576
 
Join Date: Jan 2008
Location: santiago, chile
Posts: 79
frcchile will become famous soon enough
Help with the camera

Hi!

how i can set the range for gimbal track of the camera, because I need the path of the camera is larger than the default results of the gimbal track, but i dont know how

ty
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2009, 13:17
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 5,941
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Help with the camera

Is the camera mounted on the original servo powered gimbal? or did you mount it rigidly to the robot? or on a part of the robot that turns, like a turret?
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2009, 13:28
frcchile's Avatar
frcchile frcchile is offline
Registered User
FRC #2576
 
Join Date: Jan 2008
Location: santiago, chile
Posts: 79
frcchile will become famous soon enough
Re: Help with the camera

in the original with the servos for move it, in the two color servo camera example, the gimbal track oscillating is very lower, we need a higher oscillating
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2009, 15:08
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,748
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: Help with the camera

The subVI called something like Servo Tracking State Machine, has values on the front panel to control how the gimbal moves.

The Upper Limit and Lower Limit are servo angles limiting the setpoints read by the other loop. In other words, if you don't want the gimbal to look down, you'd change the lower limit Y from 40 to 85 or so. If you don't want it to look up, you'd change the upper limit Y from 130 to 100 or something.

In case I misunderstood the question, let me give info on the other values on the panel which are not parameters. First are the Proportional numbers. These control how much the servo moves and which direction it moves when it isn't centered. To make the servo more responsive, lower the number, to slow it down and avoid oscillation, raise it. The Search Speed number determines how quickly the gimbal will move when not following a target. If set too high for a slow frame rate, you will get a blurry image or will complete skip past a target.

Finally, the attachment shows the code that does the search. It is run when the current frame doesn't have a recognizable target, and the recent frames didn't either. After some time, the servo control gives up and decides to look around in the (searching) state. The small code snippet there implements a squished spiral, which may not be the best way of doing it for this competition, but the math is cool and it works well for a bench test.

Feel free to change this searching math to whatever seems right. The default code takes 85, 85 which is the center spot of the servo, and adds the offset of the spiral in increments of .2 radians for 100 steps, then it stops and changes states to Search-Begin which centers the servos again.

If you just want the spiral to be bigger, increase the 100 to do more steps before stopping. If you want it to go faster, increase the 0.2. Or like I said, maybe you just want to do a pan from one side to the other.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Picture 5.png
Views:	41
Size:	22.1 KB
ID:	7402  
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2009, 19:32
Brdn666's Avatar
Brdn666 Brdn666 is offline
Registered User
AKA: Brandon
FRC #2604 (Metal & Soul)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Capac, MI
Posts: 24
Brdn666 is an unknown quantity at this point
Send a message via Yahoo to Brdn666
Re: Help with the camera

Note that the mount that comes with the KoP has a set range that you cannot exceed. Only like 180 degrees I believe.
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2009, 20: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,748
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: Help with the camera

By the way. I forgot to mention it, but anytime you have controls with default values like used there, it is great for tuning, just make sure once tuned to stop the app and make current value default for anything changed.

Greg McKaskle
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
Need help with programming camera! Legendofty NI LabVIEW 1 23-01-2009 22:52
Please help me with my Camera problems! Ianuser Programming 2 10-02-2007 21:17
Please help. I've had it with this camera Inverted Programming 6 14-01-2007 22:35
NEED HELP WITH CAMERA MOVEMENT nm4 Programming 3 10-02-2005 17:17
I need help with the camera WesleyBalmer Programming 7 15-01-2005 17:25


All times are GMT -5. The time now is 08:30.

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