Jump to content

How to get the current attitude of a vessel?


Recommended Posts

First I have to say I'm still a noob. I was trying to learn to write a simple auto pilot module for airplanes. I use MechJeb as the main reference but the problem is that it is so complicated that half the code doesn't make sense to me. I did sort of figure out how to control the main throttle and thus the speed of the airplane, but I have absolutely no idea how rotation works. I don't even know how to tell if the airplane is upside down or not, let alone correcting its attitude to face the desired direction.

I really appreciate any help including code examples/tutorial articles/links.

Link to comment
Share on other sites

Pilot Assistant *may* be a simpler alternative to Mechjeb since its a much smaller mod focusing on plane control only. You can see the vessel control function here and all the primary data gathering is handled here. Also some useful basic example code for this stuff on the wiki

Edited by Crzyrndm
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...