Jump to content

[WIP, plugin, part, 0.14] Extended SAS


thorfinn

Recommended Posts

Hallo everybody. I finally tried my hand at making a plugin, even if I feel really in deep water without a manual.

I decided to start by introducing a little feature that I always wanted in KSP; the ability to turn SAS on and off separately for all the axes.

The included plugin and part (an ASAS model tinted red... have mercy) do just that and nothing more; it replaces ASAS, allowing to toggle its action with the number keys (1=Pitch, 2=Roll, 3=Yaw)

I have many ideas for further features and improvements, but it\'s probably not even worth talking about those until I learn how to code better... The GUI handling part is the one I know NOTHING about, and for now it\'s a mindless cut and paste job. The rest is pretty basic, repetitive, but I hope somewhat better (and extensible in the future).

I don\'t need you telling me how bad the code is: I\'m aware of that ;) I hope that somebody can give me pointers for improving. For example, I don\'t understand why the little status window is sometimes destroyed (correctly) when the part explodes, and sometimes not.

The GUI drawing code looks really inefficient to me, like it\'s creating useless copies of some GUI types at every frame... but I cribbed it straight from MechJeb or the code snippets page in the Wiki. Is there a better way, or it\'s just that?

Enough blabber; here it is, for whoever is interested, and after streamlining the GUI code I\'ll start thinking about improvements.

A1: split-axes ASAS, proof of concept, no GUI

A2: added a small talkback panel

A3: better GUI (tbd)

...

https://www.wuala.com/georgij.petrovich/Web/plugin%20KSP/?key=S4mBcnlphx2A

Link to comment
Share on other sites

Sounds like a good idea for spaceplanes, or planes in general.

Seeing as you could disable roll SAS and manually roll while your craft is kept straight, then engage it and disable pitch SAS and do wide turns.

You would need to get used to disabling/enabling the separate functions of course.

Link to comment
Share on other sites

  • 1 month later...
Guest butt head

the thing i don\'t like about the a-sas is that it uses rcs units now some times i want to use them my self while the a-sas keeps me strait if you could add the ablitly to not let the a-sas use the rcs unless you tell it to

Link to comment
Share on other sites

As you can see, I did not have much time to do anything with this idea, sorry -.-

What you asked is one fo the many things I wanted to add; I\'ll get to do this, but for now my dissertation sadly has precedence...

(Also, I\'m trying to understand the new architecture of 0.15: lots of things changed under the hood)

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