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!