Go to Post [Pi day] is an irrational holiday - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 06-03-2012, 15:53
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
Turret + tracking help

So i have a program that finds the targets and sends a pwm value to our turret the problem is that it over shoots a little bit and just wiggles back and forth i dont know what to do...

p.s our turret has an encoder and our camera is mounted on that turret as well
Reply With Quote
  #2   Spotlight this post!  
Unread 06-03-2012, 16:32
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,042
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: Turret + tracking help

Quote:
Originally Posted by ProgrammerMatt View Post
So i have a program that finds the targets and sends a pwm value to our turret the problem is that it over shoots a little bit and just wiggles back and forth i dont know what to do...
Providing more information will get you a useful answer more quickly.


Reply With Quote
  #3   Spotlight this post!  
Unread 06-03-2012, 16:56
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
Re: Turret + tracking help

Alright so,

I am sending a PWM value to my crio then sending that value to our turret the problem is if it goes past it wants to spin back the other way and i tried to slow the motor down but it still seems to cause a wiggle effect just going left right left right and so on, i need a better way to assign the target position and use say a PID loop but im not sure if it will work in this case.
Reply With Quote
  #4   Spotlight this post!  
Unread 09-03-2012, 03:59
MorocoMan MorocoMan is offline
Registered User
FRC #2212
 
Join Date: Mar 2012
Location: Isreal
Posts: 9
MorocoMan is an unknown quantity at this point
Re: Turret + tracking help

have you considered using a control loop, such as PID, in order to arrive just at the spot you wanted to?
Reply With Quote
  #5   Spotlight this post!  
Unread 09-03-2012, 07:09
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,715
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Turret + tracking help

What we did was use a PID controller to control the turret to spin to a specific encoder reading. Then we used the FOV of the camera to calculate how many degrees we were off of the target, then did some math to convert the angle to encoder readings and told the turret to go to that location.
Reply With Quote
  #6   Spotlight this post!  
Unread 09-03-2012, 07:46
MorocoMan MorocoMan is offline
Registered User
FRC #2212
 
Join Date: Mar 2012
Location: Isreal
Posts: 9
MorocoMan is an unknown quantity at this point
Re: Turret + tracking help

at the end, you told the torrent to go to that angle through PID? if so, than the values of the PID consts are wrong. if not, try to do it through PID.
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 09:48.

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