Anas Alajati Posted April 25 Share Posted April 25 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 Quote Link to comment Share on other sites More sharing options...
Aelfhe1m Posted April 26 Share Posted April 26 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. Quote Link to comment Share on other sites More sharing options...
janellie82 Posted April 29 Share Posted April 29 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.