Giter Site home page Giter Site logo

vector000 / pegas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from noiredd/pegas

0.0 1.0 0.0 390 KB

Powered Explicit Guidance Ascent System - a KSP & RO autopilot using the Space Shuttle guidance algorithm, UPFG

Home Page: http://forum.kerbalspaceprogram.com/index.php?/topic/142213-pegas-powered-explicit-guidance-ascent-system-devlog

License: MIT License

pegas's Introduction

PEGAS

Powered Explicit Guidance Ascent System, from here referred to as PEGAS, is an ascent autopilot for Kerbal Space Program made and ran in kOS, designed to control launch vehicles under a modified version of the game running Realism Overhaul. Its unique feature is an implementation of a real-word rocket guidance algorithm: Unified Powered Flight Guidance, as used in the Space Shuttle GN&C computer for the standard ascent flight mode. Short list of what PEGAS is capable of:

  • estimation of a launch window,
  • calculation of a launch azimuth,
  • simple atmospheric ascent by pitching over and holding prograde with zero angle of attack,
  • automatic guidance to orbits defined by:
    • apoapse
    • periapse
    • inclination
    • longitude of ascending node
    • or, alternatively, selecting an existing target,
  • executing of timed events (engine ignition, payload fairing jettison etc.),
  • automatic staging with ullage handling.

More info on my KSP forum thread, also see my prototype repository.

How to use

  1. Make sure you have kOS installed. Note: basic knowledge of kOS will be very handy.
  2. Dowload files from this repository's kOS folder and place them in your Script folder.
  3. Define your vehicle and mission - see tutorial and reference.
  4. Once on the launch pad, load the definitions from pt. 2. and type run pegas. in kOS terminal.

How to get help

PEGAS is not a magical do-it-all, it needs some effort set up and get running. It has been tested with several launch vehicles, from real-world launchers like Atlas V or Saturn V, through user-made vehicles, both in RO and vanilla settings. However, I cannot guarantee that it will handle any vehicle or that it is entirely bug-free. Likely, it will take you several tries before you get your rocket flying - and maybe you will find yourself unable to do that at all. I am willing to provide support, correct bugs and (to some extent) introduce new functionalities to PEGAS. In case of problems: read the how to submit issues page and then visit the issue tracker.

Demo

Here is a video demonstration of the initial release of PEGAS in action, flying an Atlas V to parking orbit aligned with the International Space Station. It mostly focuses on explanation of the underlying guidance algorithm, only showcasing what functions PEGAS has instead of explaining how to use them. For that I strongly recommend reading the tutorial.

Note about this repository

I have been using tabs throughout the whole code, having its length set to 4 spaces in all my editors. I was unaware that github uses length of 8 - as a result, some of the .ks files look really bad. If your eyes hurt, you can force github to display them with tab size of 4 spaces by adding ?ts=4 to the URL of the file you're viewing. Unfortunately there is no way to make it a global setting (or even configure it for the repository).

pegas's People

Contributors

noiredd avatar patrykz94 avatar pand5461 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.