Go to Post I am all for high school sports, but as Dean continually preaches, we sometimes are not putting enough emphases in the right places. - Bill Beatty [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 13-02-2016, 15:27
btcshields6 btcshields6 is offline
Registered User
FRC #4206
 
Join Date: Aug 2014
Location: Texas
Posts: 107
btcshields6 is an unknown quantity at this point
Motor Potentiometer Integration

I'm attempting to integrate this year's vision code and 2009's servo example (https://decibel.ni.com/content/docs/DOC-46774).

I'd like to use the Gimbal Control.vi in the servo camera example to move our shooter/camera based on the bounding box from the 2016 Vision stuff. I've pretty much figured out how both of those VIs work, but I'm having trouble making the switch from servo control to motor control.

The problem is that the Gimbal Control stuff expects servo values inputted and outputs servo values. Those values (I think) are readings of the angles. I don't know how to input the values from my motors. My plan is to use a potentiometer to track the rotation of my motors (similar to the servos themselves). So how can I input motor position?

I'm using some 10 turn pots btw.

Thanks,

Benjamin
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2016, 15:53
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Motor Potentiometer Integration

Here is an example of using PID to slave a motor/poteniometer combo to the position of a joystick if it helps.
Attached Thumbnails
Click image for larger version

Name:	PIDexample.png
Views:	21
Size:	54.2 KB
ID:	20054  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 08:06.

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