![]() |
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 |
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 |
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 |
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. |
| All times are GMT -5. The time now is 03:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi