Jump to content

libbkmz

Members
  • Posts

    4
  • Joined

  • Last visited

Reputation

0 Neutral
  1. I mean, How to get current vertical speed of the vehicle, when I near the ground?
  2. import krpc import time conn = krpc.connect(name='test') while 1: vessel = conn.space_center.active_vessel alt = vessel.flight(vessel.reference_frame).surface_altitude ver_sp = vessel.flight(vessel.reference_frame).velocity ver_sp = map(lambda x: "%.2f" %x, ver_sp) print "alt: %s, ver_sp: %s" % (alt, ver_sp) time.sleep(0.01) I've tried this code, but vertical_speed is always 0 for the whole vector! It only works when I try vessel.flight(vessel.orbit.body.reference_frame).velocity But, I do not need any kind of orbital speeds, i thinks something wrong.
  3. So, my final equation should be looked like ln(Mstart/Mend) * Isp * 9.81 ?
  4. 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!
×
×
  • Create New...