giuliodondi / kOS-Shuttle-OPS3

Real-life Space Shuttle entry guidance program for kOS in Kerbal Space Program
16 stars 3 forks source link

Shuttle struggling to line up with Runway #6

Closed GlebKerman closed 2 months ago

GlebKerman commented 3 months ago

Hi, the script is struggling to line up with the runway after the HAC, the runway parameters were measured using your measurerwy.ks script, and after each attempt with Ops3 I went back and re-measured the runway. This was attempted with the start location for the measurement being changed occasionally between attempts ie. the 1st attempt was measured from the very end of Runway 33 to around 4/5s of the way to the other end, the 2nd and 3r attempts were measured from the 2nd Centre Line marking after the touchdown point (Rwy 33 End) to 4/5s of the way to the Rwy 15 end. The Shuttle still struggles to line up with the runway, often flaring far too late or trying to make a last minute side-slip type movement to line up.

Video from attempt 3:

https://github.com/giuliodondi/kOS-Shuttle-OPS3/assets/147939419/a8ca92c0-e3b3-4375-a989-18590025452e

Some of the values I tried in the script (measured values):

image

giuliodondi commented 3 months ago

yes I had already seen the problem on my end.

I pushed some fixed to the control gains that ought to solve your issue, try to pull thge latest and let me know

GlebKerman commented 3 months ago

Will let you know as soon as I can, appreciate the help!

GlebKerman commented 2 months ago

Tried it with the latest version, with the values from the original landing_sites.ks shown in the above screenshots:

https://github.com/giuliodondi/kOS-Shuttle-OPS3/assets/147939419/9bfbec4e-f08c-4dc2-a320-0d5f17ac9d7d

Having to heavily compress these videos I do apologise for the quality

giuliodondi commented 2 months ago

This issue has been reported by several users but so far I've never been able to reproduce it. One user reports it might be related to the Trajectories mod, do you have it installed? If so, which version, and how is it configured? Could you also try to see if removing the mod helps any?

GlebKerman commented 2 months ago

I have Trajectories v2.4.5 installed at the moment, I got the mod for using your ops1 scripts, as for the settings:

unknown_2024 06 08-23 24 unknown_2024 06 08-23 24_1

GlebKerman commented 2 months ago

Will let you know how removing it affects the script

GlebKerman commented 2 months ago

Hey, I remeasured the runway and removed trajectories and it managed touchdown on the runway! There is definitely some form of conflict with Trajectories...

giuliodondi commented 2 months ago

Huh... interesting, will need to investigate further, thanks for the report in the meantime!

GlebKerman commented 2 months ago

https://github.com/giuliodondi/kOS-Shuttle-OPS3/assets/147939419/14d19756-f023-4d0a-bcc0-453618b28ac5

Of course! Do you know any alternatives to Trajectories to help with the maneouvre nodes for entry?

giuliodondi commented 2 months ago

Principia is by far the best for orbital planning.

Btw that last landing you showed is even smoother than some of the ones I've seen on my end

GlebKerman commented 2 months ago

Yeah I was genuinely surprised at just how smooth that was. Much smoother than any landing I've performed manually. Script works amazingly well!

Appreciate the recommendation of Principia also!