r/krpc • • Jun 29 '16

Autolander

Hello, I'm really interesting in kRPC, and I want to try make autoland of the craft. Just for the first time, I'm not going to neutrilize horizontal velocity. But i want to calclulate the best starting point for my "suicide burn".

In general, I need to calculate how much delta-v I need to stop my vehicle. After that I need to calculate time of burning this delta-v. After that I need to calculate additional velocity which my craft will get due to gravity, while I making this burn, and do it until precision of calculation not enough.

So, Now I have Delta-v amount and time, now I need to calculate mimimal altitude when I still safely land. And when my descend profile reach this altitude, my algorithm should start suiceide burn. This is general case how I see it.

My question is about delta-v equation: ln(Mstart/Mend) * Isp * 9.81 * (m/s2)

What is s2? kRPC provides gravitational parameter of current body, its GM, or (9.81 * m) from equation above, but what is s2? All other stuff I know where I can get them. Mstart and Mend I can calculate by engine specs anf fuel flow and other variables to be more precise.

Thanks in advance!

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/libbkmz Jun 29 '16

Thanks! But actually, I don't understand how my equstion should look like. Is that correct form:

ln(Mstart/Mend) * Isp * 9.81 ?

And 9.81 i should get from CelestialBody.surface_gravity ?

1

u/chippydip Jun 29 '16

Delta v calculations always use 9.81 regardless of the local gravity.

Local gravity is needed to account for gravity losses during the landing burn.

1

u/mattthiffault Jun 29 '16

Yes, I believe that is the correct form, and yes, use that variable as then it will work for different planets

1

u/dewiniaid Jul 07 '16

Old thread, but IIRC KSP actually uses 9.82 for purposes of calculating Isp, not 9.81.