Go to Post CAD pictures are cool, but hardware in hand is cooler. :) - ajlapp [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
  #16   Spotlight this post!  
Unread 06-02-2016, 15:30
btcshields6 btcshields6 is offline
Registered User
FRC #4206
 
Join Date: Aug 2014
Location: Texas
Posts: 107
btcshields6 is an unknown quantity at this point
Re: Shooter Aiming with Tables

@Turing'sEgo Thank you!

@Ether That is my plan. Sometime this week we'll be able to begin testing with our actual shooter.

I am not actually sure how to write code to reference a lookup table. I was going to start looking for related Labview documentation. If anyone has a link they can post here I'd appreciate it.

Thanks,

Benjamin
  #17   Spotlight this post!  
Unread 06-02-2016, 16:56
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,862
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: Shooter Aiming with Tables

Here is an example of lookup tables from the NI developer community:
This one is good for use with a spreadsheet.
https://decibel.ni.com/content/docs/DOC-14653
It may need a bit of updating to LabVIEW 2015 (what we're using for FRC 2016).

A little less complex is something like Interpolate 1D Array found in the palettes under Programming->Array
or maybe Search Ordered Table.vi found under Mathematics->Interpolation & Extrapolation
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 06-02-2016 at 17:24.
  #18   Spotlight this post!  
Unread 06-02-2016, 21:54
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Shooter Aiming with Tables

Mark beat me to it, but I generally use the Interpolate 1D function.

Your lookup table is an array of number. They can be typed into a constant or be read from a file as a 1D array. Be sure to run the subVI and enter some values by hand and ensure that the output values make sense.

Greg McKaskle
  #19   Spotlight this post!  
Unread 13-02-2016, 13:01
btcshields6 btcshields6 is offline
Registered User
FRC #4206
 
Join Date: Aug 2014
Location: Texas
Posts: 107
btcshields6 is an unknown quantity at this point
Re: Shooter Aiming with Tables

So I'm looking into using the Interpolate 1D Array. How can I convert my spreadsheet into the 'array of numbers or points' that the function requires? Also, should I store the file in the project folder?

Thanks.
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 18:28.

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