Go to Post GO OUTSIDE, OR SOMETHING. Go do something other than FIRST for a little while - after all, in January, your life is consumed! - Libby K [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 16-03-2012, 00:29
Robobuff1.0's Avatar
Robobuff1.0 Robobuff1.0 is offline
Registered User
FRC #1633
 
Join Date: Jan 2011
Location: Arizona
Posts: 46
Robobuff1.0 is an unknown quantity at this point
Smile PID Auto Aim Question

okay I did plenty of research here on chiefdelphi and the NI example codes. Now what I am trying to do is to use the camera and center our robot using a turret. I am a rookie programmer and dont really know much about PID and vision processing. My question is if the attached code below is right and how do I choose for it to track the top or middle hope? It will be very helpful if I see an example. (and I haven't put the refnum yet so don't worry about that part.) Thanks in advance our team will appreciateit
Attached Thumbnails
Click image for larger version

Name:	PID control.png
Views:	87
Size:	36.7 KB
ID:	12324  
__________________
FRC: 1633
FTC: 2873
Reply With Quote
  #2   Spotlight this post!  
Unread 16-03-2012, 09:28
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PID Auto Aim Question

Quote:
Originally Posted by Robobuff1.0 View Post
okay I did plenty of research here on chiefdelphi and the NI example codes. Now what I am trying to do is to use the camera and center our robot using a turret. I am a rookie programmer and dont really know much about PID and vision processing. My question is if the attached code below is right and how do I choose for it to track the top or middle hope? It will be very helpful if I see an example. (and I haven't put the refnum yet so don't worry about that part.) Thanks in advance our team will appreciate it
I see only one input going into each PID. Each PID needs both a setpoint and a process variable input.


Reply With Quote
  #3   Spotlight this post!  
Unread 16-03-2012, 11:13
Robobuff1.0's Avatar
Robobuff1.0 Robobuff1.0 is offline
Registered User
FRC #1633
 
Join Date: Jan 2011
Location: Arizona
Posts: 46
Robobuff1.0 is an unknown quantity at this point
Re: PID Auto Aim Question

Quote:
Originally Posted by Ether View Post
I see only one input going into each PID. Each PID needs both a setpoint and a process variable input.


That was kind of part of my question I have never used PID before so I dont really know what to put, what are those (setpoint and process variable input) and what do I put for those?
__________________
FRC: 1633
FTC: 2873
Reply With Quote
  #4   Spotlight this post!  
Unread 16-03-2012, 11:30
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PID Auto Aim Question

Quote:
Originally Posted by Robobuff1.0 View Post
That was kind of part of my question I have never used PID before so I dont really know what to put, what are those (setpoint and process variable input) and what do I put for those?
Read the LabVIEW help for PID. It explains a lot.

Then look at this example:
http://team358.org/files/programming...PIDexample.jpg

Then read this explanation:
http://uberbots.org/o/Resources/For_...ms/PID_Control

Then search CD for PID threads.

Then ask specific questions about what you don't understand.


Reply With Quote
  #5   Spotlight this post!  
Unread 16-03-2012, 12:52
Robobuff1.0's Avatar
Robobuff1.0 Robobuff1.0 is offline
Registered User
FRC #1633
 
Join Date: Jan 2011
Location: Arizona
Posts: 46
Robobuff1.0 is an unknown quantity at this point
Re: PID Auto Aim Question

Thank you! that was very helpful I understand it better now
__________________
FRC: 1633
FTC: 2873
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


All times are GMT -5. The time now is 22:05.

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