Jump to content

[0.24] Gimbal Auto Trim 1.1 (Sept 2)


sarbian

Recommended Posts

This is a simple mod that add a "ModuleGimbalAutoTrim" that extend the default ModuleGimbal.

Any engine with this gimbal will have a new "Auto-Trim Gimbal" toggle. When activated on one or more engines they will orient themselves so the Direction of Thurst stay aligned with the Center of Mass.

Exemple with the KSO using 3 x LV-T45 as engines

GimbalAutoTrim1.pngGimbalAutoTrim2.png

It uses the same parameters than a ModuleGimbal with the added ( default values shown )

gimbalAutoTrim = false (initial state of the auto trim)

trimLimit = 45 (maximum angle allowed)

It does not trim non stock Gimbal like dtobi km_Gimbal (used in his Space Shuttle Engines, and the KSO) or HoneyFox TweakableGimbal. I'll look into making it work with theirs later, when I clean up the code a bit.

Download : GimbalAutoTrim-1.1.0.0.zip

Source : https://github.com/sarbian/GimbalAutoTrim/

License : Licence : Attribution 4.0 International (CC BY 4.0): http://creativecommons.org/licenses/by/4.0/

You are free to package the DLL with your mods as long as it use the directory structure of my zip

and that you respect the licence (the Attribution part, so the *whole* licence).

btn_donate_SM.gif

You can convert all you default gimbal with a simple MM patch :


@PART[*]:HAS[@MODULE[ModuleGimbal]]
{
@MODULE[ModuleGimbal]
{
@name = ModuleGimbalAutoTrim
}
}

Edited by sarbian
Link to comment
Share on other sites

This would have been awesome last night when 2 of my 3 engines ran out of oxidiser(fuel line fopar), leaving me with a totally unbalanced and slow ride home. DL'ing immediately. Thanks heaps

Link to comment
Share on other sites

Dust : it should work with most engine already. Just appli the MM patch at the end of the post. The default max trim range (45°) may look bad on some engine

Zeroignite : it's done in real time.

Link to comment
Share on other sites

Can't wait to see this working with Dtobi's gimbals. Would really come in handy for the CSS. Right now, it does have some handling issues under load and just before MECO, that would mitigate those.

Link to comment
Share on other sites

This has SO much potential. I have a little trouble if I mix engines (Mark 55 Radial Mount + LV-T45) on two deliberately misaligned side-by-side fuel pods, and crazy stuff like that, but if you can do something to combine all thrust vectors on a craft in proportion to engine strength, this will become absolutely AMAZING, Sarbian. As it is, I find this to be a great + interesting mod function for designs using one main engine (or a single engine cluster)!

Link to comment
Share on other sites

"this end should point towards the ground if you want to go to space... If it starts pointing towards space you are having a bad problem and you will not go to space today"

Edited by Hellbrand
Link to comment
Share on other sites

This has SO much potential. I have a little trouble if I mix engines (Mark 55 Radial Mount + LV-T45) on two deliberately misaligned side-by-side fuel pods, and crazy stuff like that, but if you can do something to combine all thrust vectors on a craft in proportion to engine strength, this will become absolutely AMAZING, Sarbian. As it is, I find this to be a great + interesting mod function for designs using one main engine (or a single engine cluster)!

The way it's done it should work with engines of different strength. It actually uses the current thrust of the engines, so even engine with a slow ramp up should be handled right.

The current actual limitation of the way I did it is if you set the trimLimit to lower values for some engines. If the mod needs to trim the engines more than the lower limit then it won't try to compensate by triming the other engines more. It's doable but require a bit more work.

Link to comment
Share on other sites

Shuttles with stock engines - nice! I wonder how this plays with the mod that balances thrust from multiple engines to do the same thing? (Edit: there are at least two, by Davon and qfeys)

From a gameplay POV, making this an unlockable feature (say, by researching Advanced Aeronautics) would be very nice, and give a real incentive to unlock the aeronautical science nodes that currently don't have much going for them in Career mode.

Edited by colmo
Link to comment
Share on other sites

Thanks Colmo for bringing this to my attention :D

This sounds like an incredible feature that will one day most likely be stock :)

Can I ask, is it a simple plugin that binds to all engines or does it work on a per part basis (I mean does it use MM and add modules to parts or does it work as a blanket plugin?)

This sounds fantastic :)

Link to comment
Share on other sites

It's per part since it's a PartModule. You have to use the MM sample I put in the first post to deploy it for all your engines.

For future version I'll most likely split it with a part less class that will do the math and partModule that will update the gimbals.

Link to comment
Share on other sites

Ok, so here is my question: I use the Guppy series of space tug, which usually have their engines mounted at a slight outward angle. This mod will auto gimbal the engine to thrust straight thru the COM, so I would still have sine losses, right?

Awesome mod Sarbian

Link to comment
Share on other sites

I really wish it worked with Dtobi's gimbals. I would use it for the Component Space Shuttle, but Dtobi's gimbals are needed, too, because their range can be different on both axes, which is very important for the Shuttle.

Link to comment
Share on other sites

FRAG NABBIT!

Sorry, missed the details in the awesomeness.

So is this the correct usage?

@PART[*]:HAS[@MODULE[ModuleGimbal]]
{
@MODULE[ModuleGimbal]
{
@name = ModuleGimbalAutoTrim
gimbalAutoTrim = true
trimLimit = 45
}
}

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