Jump to content

Custom controller - Only half of the axis motion is detected.


Recommended Posts

Hello folks! Trying to make a custom KSP controller with arduino, but I've encountered a problem: 

I'm using the Joystick arduino library (the second version) and a potentiometer to control the X axis of the controller. I've checked it on Devices and Printers, in the "controller settings": it works, the dot moves from one side of the square to the other. But when I launch KSP and assign that particular axis to, say, Roll control, the spacecraft starts spinning because the axis motion is wrong.

 

Let's call -1 one of the limit angles of the potentiometer, 1 the other and 0 the center. The expected behaviour is: the spacecraft rolls one way when the potentiometer is at state 1, the other way at -1 and it does not spin at state 0. The actual behaviour is, instead, that it spins one way at state 0, the other way at state 1 and it stops at, say, 0.5 (haven't really defined it, but you get what I mean, at (+limit angle)/2.

I read somewhere that this is because there is some compatibility issue with some controller setup, and although I am myself a Unity developer I haven't really used controllers that much in my games and I admit my ignorance on the topic, so if any of y'all beautiful people can help I'll be happiest to go on with my project :) 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...