Go to Post buying an iPhone...$599. Monthly service charge...$59. Going to an Apple store just to post on CD... Priceless!:p - Schnabel [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2014, 20:07
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Interpolation Curves/Surfaces in FRC

So, I read another thread discussing methods of finding an equation for a given set of points, I wondered how or if other teams use interpolation tables as a quick and easy way of scaling data and getting a desired transfer function.

I attached two examples of 3d surfaces (both are from Kettering's FSAE engine software) and a 2d curve (from a robot).

In either case, the input breakpoints and output values at each cell are calibrated in a table. You can change things so the response is nonlinear, or if you have exact values at certain points you can type them in. The software then finds the correct cells bounding the input variables, and interpolates linearly to find the output.

I use them all the time, both at work and in FRC. Does anyone else use them. What are your thoughts?
Attached Thumbnails
Click image for larger version

Name:	ve_surf.png
Views:	29
Size:	21.5 KB
ID:	16115  Click image for larger version

Name:	crankfuel_surf.png
Views:	23
Size:	18.5 KB
ID:	16116  Click image for larger version

Name:	sensor_scale_curve.png
Views:	22
Size:	10.0 KB
ID:	16117  
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #2   Spotlight this post!  
Unread 05-02-2014, 20:12
magnets's Avatar
magnets magnets is offline
Registered User
no team
 
Join Date: Jun 2013
Rookie Year: 2012
Location: United States
Posts: 748
magnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond repute
Re: Interpolation Curves/Surfaces in FRC

When we need to find a function we just use excel and we get a polynomial line of best fit, then put the equation on the robot.

It's nice because you can play around with the inputs/outputs and watch how the graph changes.

We've used it for making functions for distance from goal vs. shooter rpm, distance from wall vs. desired robot speed, motion profiling for elevators/arms/climbers where we'd like to go different speeds at different locations, robot speed vs. intake roller speed (this is really nice for fast robots with roller intakes), and a bunch of other things. It's really useful.
Closed Thread


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 02:31.

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