MuMech / MechJeb2

MechJeb2 - KSP mod
Other
991 stars 250 forks source link

Landing Autopilot EPIC rewrite #1052

Open lamont-granquist opened 5 years ago

lamont-granquist commented 5 years ago

This is for wishlist features for a rewrite of the Landing Autopilot. This would be based on PEG-like explicit guidance.

This is the "Why can't MechJeb land my Falcon 9 automatically?" bug.

Also everything to do with "Land on flat surfaces and do everything possible so I don't tip over" bug.

(And generally the "Landing Autopilot freaks out and [lithobrakes, flies in circles, etc, etc]...." bug.

This does not include fixing current bugs in the existing 'classic' landing autopilot.

Current Status is "Not Started" Current ETA is ">> 6 months" (from whenever date you are reading this comment)

Blocked on getting better ascents and node execution code working and merged.

Bornholio commented 5 years ago

Rock on good luck with all this, heck any of this is progress.

wesselg2 commented 5 years ago

I was just in a whole though process and I don't mean this disrespectful in any way but maybe this could be useful? And if you have any questions or anything please message me. Once again with the upmost respect.

Wouldn't it be cool to have a Space Shuttle autoland possibility? As drop down from options:

I think the following things have to be taken into account, at least from my AE background:

  1. The speed of approach should be obtained.
  2. The deceleration during flare should be taken as the average angle of beginning and end of maneuver times the lift coefficient times two seconds so the amount of dV and eventually height can be calculated of the maneuver.
  3. The lift then at the 5 degree angle and the speed (which is squared so it's not just average) should be used to determine the time and height needed of the deceleration.
  4. To get it on the right runway the glide angle path (without flare) should be placed just on the end of the runway.
lamont-granquist commented 5 years ago

So, I think that's probably out of scope of all this. The Landing Autopilot is more focused on rocket-driven and/or parachute driven landing. Just from a UI/UX perspective it probably wouldn't support high lift to drag hypersonic landing like that, which is more of an aircraft autoland autopilot. All useful stuff, but probably would need to go somewhere else. And I'm certainly 2-3 years away from even /thinking/ about that myself...

lamont-granquist commented 5 years ago

There's also a lot of work on entry guidance using more or less the same control principles behind PVG: https://arc.aiaa.org/doi/abs/10.2514/1.62605 and https://www.sciencedirect.com/science/article/pii/S1270963818301354

wesselg2 commented 5 years ago

I'm going to be a complete fool here but what do you mean with UI/UX and PVG?

lamont-granquist commented 5 years ago

PVG is "Primer Vector Guidance" which is the current RSS/RO launch ascent guidance. It is based on optimal control theory / primer vector theory / calculus of variations / "indirect" optimization.

UI/UX is User Interface / User Experience.