Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 1.86 KB

README.md

File metadata and controls

13 lines (10 loc) · 1.86 KB

PEGAS-MATLAB

Powered Explicit Guidance Ascent System is a simple physics simulator based on Kerbal Space Program together with an implementation of two real-word rocket guidance algorithms: previously Powered Explicit Guidance, more recently Unified Powered Flight Guidance - as used in the Space Shuttle GN&C computer.

PEGAS started as an autopilot script for the game, but soon - due to its unique implementation of PEG and then UPFG - evolved into a complex piece of software that needed an entire simulation environment to develop and debug. This infrastructure code was written in MATLAB and originally PEGAS repository held both that prototype code and the game script. Since the prototype code grew somewhat beyond its original purpose, and at the present state it is a general testing platform for possibly many other projects, it was separated from the game code and placed in the following repository.

Credits

MATLAB linearFit.m function contains pieces written originally by Andrey Rubshtein and Nikolai Golovchenko. flightPlots.m uses Richard Crozier's tightfit (see MATLAB\tightfit.license for attached BSD license). I also made use of Will Campbell's earth_sphere code (see MATLAB\earth_sphere.license for attached BSD license). Thank you for your great work!