Jump to content

Are we able to Control the gimbals of the rocket using kOS or any other mods


Recommended Posts

I am trying to write code that would automatically make the rocket go into the orbit, I am basically working on an automated control system for the rocket.  I am able to write code that would do that using autopilots in kOS. However, I want to have more control and change the directions of the gimbals instead of doing so with just SET functions is there any way to do so, since in the kOS documentation values for Gimbal controls are GET only

Link to comment
Share on other sites

13 hours ago, Anas Alajati said:

I am trying to write code that would automatically make the rocket go into the orbit, I am basically working on an automated control system for the rocket.  I am able to write code that would do that using autopilots in kOS. However, I want to have more control and change the directions of the gimbals instead of doing so with just SET functions is there any way to do so, since in the kOS documentation values for Gimbal controls are GET only

I don't think this is possible with the stock gimbal module but I did find this mod that looks like it might provide what you're looking for.

 

Link to comment
Share on other sites

This exact scenario is why I created the mod linked above.  With it, you can set the angle of an engine gimbal like this:

engine:GetModule("ModuleGimbalTrim"):SetField("Gimbal X", angleX).
engine:GetModule("ModuleGimbalTrim"):SetField("Gimbal Y", angleY).

Note that the mod's X and Y fields do not necessarily correspond with the X and Y axes of engine:facing. You can figure out which way the gimbal rotates (this varies depending on the engine) and then just rotate the engine accordingly in the VAB.

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