Search the Community
Showing results for tags 'rtls'.
-
There's still some fudging going on with the script. I haven't figured out how to get available_thrust for the engines at sea level, so for now, I just put in the thrust Micro Engineer states for the suicide burn calcs. Same with ISP, which is what I'm using to calculate final mass after the suicide burn. Since available_thrust is giving me the vacuum thrust, the hover throttle calculation is giving me a throttle setting below actual required throttle. Until I figure that out, I added a small proportional gain, but that can lead to some overshoot. Previously, in kOS, I was calculating suicide burns using a time slice method, "simulating" one second at a time. This time, I realized thrust is constant, while acceleration is dependent on mass, which drops at a constant rate, so calculus should be able to handle this. I barely passed calculus in the 90s, but found this post on the kOS subreddit that had an equation that worked (eventually). This really won't be functional in a campaign until a mod like FMRS or Physics Range Extender comes out, and I can control both first and second stage.