Go to Post Suggesting change is one thing, implementing it is another. - JaneYoung [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 26-02-2012, 23:09
Joshuamunson Joshuamunson is offline
Registered User
FRC #2996
 
Join Date: Feb 2012
Location: Colorado
Posts: 16
Joshuamunson is an unknown quantity at this point
Distance to RPMs

currently we are using the camera to find the distance to the back boards and have been using encoders to find the RPMs needed at certain distances away.
Is there a way to mathematically and/or programmatically take a table with distances and RPMs to make the robot take any distance to the backboard and automatically give it that set RPM?
Reply With Quote
  #2   Spotlight this post!  
Unread 26-02-2012, 23:14
Timz3082 Timz3082 is offline
Registered User
FRC #3082 (Chicken Bot Pie)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Minnesota
Posts: 115
Timz3082 is a jewel in the roughTimz3082 is a jewel in the roughTimz3082 is a jewel in the roughTimz3082 is a jewel in the rough
Re: Distance to RPMs

I would try just manual data logging (good ol pencil and paper) comparing distance value to RPM. Then put that into a spreadsheet or a math site like Geogebra and fit an equation. Then implement that equation into your program!
__________________
2011 Record (11-3-0)
Reply With Quote
  #3   Spotlight this post!  
Unread 27-02-2012, 00:06
Joshuamunson Joshuamunson is offline
Registered User
FRC #2996
 
Join Date: Feb 2012
Location: Colorado
Posts: 16
Joshuamunson is an unknown quantity at this point
Re: Distance to RPMs

how would I go about doing that if I have a gap in the 2 RPMs
I have a top shooter wheel and a bottom
the top goes at 300 RPMs slower than the bottom
maybe 2 equations?
Reply With Quote
  #4   Spotlight this post!  
Unread 27-02-2012, 00:21
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,112
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: Distance to RPMs

It sounds like you're looking for the Interpolate 1D function. It's in the Mathematics > Interpolation & Extrapolation palette. Give it a pair of arrays for the independent and dependent values, and it will find the appropriate output for a given input.
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 11:15.

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