appenz / kerbal2

Automation for KSP2 written with KontrolSystem2.
Apache License 2.0
3 stars 1 forks source link

Sphere of Influence calculation is off with 0.2.0 #3

Open appenz opened 10 months ago

appenz commented 10 months ago

The ejection burn from Kerbal for transfers to Mun and Minimums is wrong for patch 0.2.0 and the spacecraft never reaches the SoI of the other body.

DimiBD commented 10 months ago

For exemple, with soi_adjust = 1 :


Planning Transfer: Kerbin -> Minmus
  current/target phase angle: 259 / 115
  Angles. rate of change: 0.17364 delta 144.1 -> time 13:49
  body info : radius 600000 SOI 2247428.3879023
  transfer to alt: 44,152,572 m  in 13:49
  eject at phase angle 114.9  ejection angle -1.0  dV: 889.51 m/s
Maneuver: dt: 13:49  dV: 889.5 m/s stages: 0 burn: 0 s  burn: 0 s
    stages:

If we go to 1.5 :

image


  transfer to alt: 66,228,857 m  in 15:37
  eject at phase angle 114.9  ejection angle -1.0  dV: 896.14 m/s
Maneuver: dt: 15:37  dV: 896.1 m/s stages: 0 burn: 0 s  burn: 0 s
    stages:
  done.
Vacuum burn dv: 896 m/s  dt: 54 s

So the transfert to alt seems to be increase, but the ejection angle is not. I never end in the SOI of minmus.

Hope this is helpful ...

appenz commented 10 months ago

Yes it is. I'll debug and try to do so this week.