Jump to content

[Request] Looking for a mod for absolute control instead of relative - set my craft's heading based on exact joystick position


moeburn

Recommended Posts

I posted this to Reddit earlier:

 

http://i.imgur.com/QDrXdDk.gifv

 

It's an Arduino IMU acting as a joystick, which allows me to control spacecraft by tilting the IMU in various directions.  Problem is, it's acting like a regular joystick, which means it's relative control.  If I tilt it a little bit, and then return it to center, the craft will continue spinning in that direction.  This is relative control.

 

What I want, is to be able to mount this IMU in a gimbal, so whatever position I spin it towards, that's the direction KSP tries to set my craft to.  AKA absolute control.  Is there any plugin or mod out there that will try to set my craft's pitch, roll and heading based on the exact position each joystick axis is in?  

Link to comment
Share on other sites

I can assure you that the second one currently doesn't handle rotational control at all (give me a few weeks :wink:). And the first currently only does relative control. 

kRPC includes an autopilot that can move the vessel to a given pitch, roll and heading. It seems like an easy job to write a service that reads that info from your Arduino over serial and controls the kRPC autopilot. 

Link to comment
Share on other sites

  • 2 weeks later...
On 4/26/2017 at 5:09 PM, stibbons said:

I can assure you that the second one currently doesn't handle rotational control at all (give me a few weeks :wink:). And the first currently only does relative control. 

kRPC includes an autopilot that can move the vessel to a given pitch, roll and heading. It seems like an easy job to write a service that reads that info from your Arduino over serial and controls the kRPC autopilot. 

Oh it doesn't even need to read the Arduino over serial, since it is already outputting as a generic USB HID joystick device.  All I need is something that can make my joystick, any joystick, absolute control based on the 3 joystick axes, instead of relative

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...