|
Re: Equation for joystick input to Talons
You could use an interpolation table.
Basically, you make a table like you already made, and the software linearly interpolates between the points. Super easy to write, calibrate, etc.
I wrote a LV VI to do this (it's in the BuzzLib download here). I can try to dig up my C version if anyone wants it.
__________________
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
|