Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Converting Joystick voltage to movement.

$
0
0
Hello,

I'm working on a project that controls an Xbox controller from a micro-controller. I am wondering if any of you guys (game programmers) would know if there is some standard function (mathematical function) that they use to convert the potentiometer voltage of the joystick to some velocity in the game. I'm talking about a game like Halo. Converting the voltage to how fast he runs or specifically the angular velocity the gun pointer moves, the courser moves in a circle. I'm pretty sure its some kind of exponential function or logarithmic or some higher order polynomial. I can find out by plotting a tun of points and getting a function of the plot. But I thought maybe there is already a known function for it. I hope my question is clear.


Thanks,
Matt

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>