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

Certain configurations of the flight plan cause a crash #45

Closed Noiredd closed 2 years ago

Noiredd commented 2 years ago

PEGAS crashes if the resulting flight plan is shorter than 5 items. Problem is on line 480 in pegas_misc.ks.

Another crash occurs if all sequence events occur prior to UPFG activation. Relevant line 406 in pegas_misc.ks.

Fixes seem simple and I'll implement them soon, just posting here to notify that I'm aware of the bugs.

theLXMB commented 2 years ago

I'm happy to report your fix works even on my WIP "break what you can" rocket 😃

theHexagoner commented 1 year ago

Mine is still blowing up on line 406. I'm user Kurld on the KSP forums. Thanks.

The last time in my sequence is at 10 and the guidance kicks in at 75.

theHexagoner commented 1 year ago

adding another item to sequence after 75 lets it run.

theHexagoner commented 1 year ago

LOL after fixing that it still blows up at line 480.

AM I SURE I HAVE THE LATEST CODE?

theHexagoner commented 1 year ago

OK, derp. I have the latest release and this was fixed after that. Sorry it's been a long day...