Jump to content

KSP + kOS + MATLAB


Ricardo.b

Recommended Posts

I took some data from ksp using KOS and came up with a trajectory plot in MATLAB. here is the result:

9kS2WzV.png

 

I'm flattening my trajectory at 150km for the moment because the script parameters for trajectory. this is my first plot to work these parameters, next weekend goal: optimize it!

Link to comment
Share on other sites

@ILikeIke nope. I made a controller that traces a reference signal based on 5 parameters:

 

//set trajectory parameters:
SET alpha to 0.009.
SET R TO 100.          //end altitudde of the gravity turn [km]
SET Delta TO 5.       //start of gravity turn [km]
SET turnStart TO 30.  //turn start interpolation 
SET endAngle TO 5.    //final angle of the gravity turn [deg]
SET tgtApoapsis TO 200000.  //[m]
SET tgtPeriapsis TO 200000.  //[m]

also the script returns some data (I want to implement more) to see how different rockets behave with same parameters, then I can change as I want.

when I make it t, I plan to write an iterative plot where I can compare several data graphics

I forgot to mention that i'm in 6.4x Kerbin Scale

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