Go to Post it was beautifull just beautifull... then i took my earmuffs off. - Tytus Gerrish [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 14-03-2016, 12: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: Shooter speed calculation from vision tracking

Quote:
Originally Posted by Alon View Post
by empirical data you mean like a table of values?
By "empirical data" I mean the test data you collected by actually firing your shooter from different distances.

You can put that empirical data into a table and do a table lookup in your code.

Or you can fit a polynomial to that data and compute the polynomial in your code.

Or you can construct a piecewise-linear function from that empirical data, and compute that function in your code.

Or you can construct a piecewise-cubic-spline function from that empirical data, and compute that function in your code.




Last edited by Ether : 14-03-2016 at 12:36.
  #2   Spotlight this post!  
Unread 14-03-2016, 13:55
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 322
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Shooter speed calculation from vision tracking

We use a catapult-like pneumatic arm instead of a shooter wheel, but we have found that as other people have stated on this thread, the values we set to make shots look really arbitrary. They're most likely a combination of multiple physical effects and very hard to predict.
We used linear interpolation between values in a lookup table we got from test data. It's been very successful so far, and I suggest you do something similar instead of trying to simulate the physics of the shot. Retaking values for the table took us about 15 minutes on the practice field before our competition last weekend, so it shouldn't be too hard after you've done it a few times.
  #3   Spotlight this post!  
Unread 14-03-2016, 14:11
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: Shooter speed calculation from vision tracking

Quote:
Originally Posted by euhlmann View Post
We used linear interpolation between values in a lookup table
A piecewise linear function is essentially the same thing as an interpolated lookup table with unevenly-spaced x values.


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 06:57.

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