Noiredd / PEGAS

Powered Explicit Guidance Ascent System - a KSP & RO autopilot using the Space Shuttle guidance algorithm, UPFG
http://forum.kerbalspaceprogram.com/index.php?/topic/142213-pegas-powered-explicit-guidance-ascent-system-devlog
MIT License
114 stars 31 forks source link

Atmospheric guidance switches from pitch-program to min-AoA during UPFG preconvergence #46

Closed Noiredd closed 2 years ago

Noiredd commented 2 years ago

If you configure your vehicle to follow a pitch program (which potentially flies at a high angle-of-attack at some point), this setting will be disregarded when PEGAS is about to switch to active guidance. Offender is line 935 in pegas_util.ks - since it wasn't changed to account for the new pitch program mode, it still assumes that the only correct way of flying in the atmosphere is min-AoA.

Solution: replace this with a call to atmosphericSteeringControl.