An Arduino library that adds one or more joysticks to the list of HID devices an Arduino Leonardo or Arduino Micro can support.
GNU Lesser General Public License v3.0
2.07k
stars
403
forks
source link
The values look perfect, set the range (0, 1023, 255, 0) in setup and everything seems fine but in the sim most of the pot range wasnt moving the tiller at all. It was nearly required to move full left or full right to give an input, after i set the response curve in the exact point the pot was starting to "generate input" then the calibration was perfect and i got full pot's range working #184
I bet this is relatet to using the map-function.
You map the range of 0-1023 to 255-0 which means that the scale is inverted and reduced to a quarter of its full length. I think you should try removing map or as I did first:
map(0, 1023, 0, 1023);
which of cource is useless (as it maps e.g. a read value of 750 to 750 but you can quickly revert it this way.
If your max read value of 1023 just moves the in game value by about a quarter of the available slider, this might be the reason.
I bet this is relatet to using the map-function. You map the range of 0-1023 to 255-0 which means that the scale is inverted and reduced to a quarter of its full length. I think you should try removing map or as I did first: map(0, 1023, 0, 1023);
which of cource is useless (as it maps e.g. a read value of 750 to 750 but you can quickly revert it this way.
If your max read value of 1023 just moves the in game value by about a quarter of the available slider, this might be the reason.
Cheers Mat