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

Southerly launches #7

Closed Noiredd closed 7 years ago

Noiredd commented 7 years ago

Current release only supports launches in the northern direction, implicitly assuming this direction. Interestingly, mission has an undocumented key launchAzimuth allowing the user to make somewhat of a dogleg ascent by constraining the initial azimuth (which would otherwise be calculated) or a southerly launch. Unfortunately, orbitInterceptTime assumes the launch always happens in the northern direction and if someone actually tried forcing the southern direction, the whole algorithm would think it's going the opposite way than it should and try to correct that.

This one seems easy to implement:

Rest of the algorithm should handle without need for further changes.

TheGrover commented 7 years ago

Could direction have three possible entries? North, South or Any? With "Any" calculating and commencing the next possible window?

Noiredd commented 7 years ago

I like this idea and will implement it.

Noiredd commented 7 years ago

Implemented in 811c12d. As planned, mission has a new optional key: direction. User can choose either north or south launch opportunity, or type in nearest to have PEGAS pick the nearest one.