Coder Social home page Coder Social logo

g-fold-python's Introduction

Falcon Heavy Demo Mission

G-FOLD Python

Guidance for Fuel Optimal Landing Diverts (GFOLD)

This code reimplements GFOLD algorithm in Python with use of the fantastic cvxpy utility. The algorithm was defined by a number of papers, but chiefly this paper by Ackimese, Carson, and Blackmore at JPL.

What you can do with GFOLD-Python

What you can't do with GFOLD-Python

  • Attitude control
  • Robust control
  • Control of any kind (this is a guidance algorithm!)

How to use it

  • If you wish to do a static calculation (not generating C code)

    1. Define your vehicle and environment in GFOLD_Static_Parms
    1. Comment / Uncomment the constraints you wish to have in GFOLD_Static
    2. Run python GFOLD_Static.py (requires scipy)
    3. View the "evil" plots (this name is just a joke btw)
  • If you wish to do C code generation

    1. Set test = 0 at the top of GFOLD_Generate.py
    2. Run python GFOLD_Generate.py (requires cvxpy_codegen)
    3. Fix some of the known-bugs cvxpy_codegen creates - See issues page of the repo - Attempt to compile, and solve each error as they come
    4. Compile the generated C code
    5. (Optional:) Install the compiled CPython code into your Python distribution with setup.py if you wish to use the compiled code from Python - Be aware that the Python2.7 Windows Compiler provided by Microsoft will not work because it has a pathetically tiny stack heap size. Recommend using MinGW on Windows!

Documentation

  • Since this is a pre-alpha research project, the main documentation is found in #code comments, and in the content of the paper itself.

Requirements

  • Python 2.7 (I'm sorry about still using python 2, Mr. Guido, but cvxpy_codegen is the constraint here...)
  • scipy (for static solutions)
  • cvxpy (for static solutions)
  • cvxpy_codegen (for code generation)

License

GPLv3, copyleft license.

Chose this license because I spent way too many late nights and heartbeats working on this - and want to see what people do with it and have changes propagated forward!

g-fold-python's People

Contributors

jonnyhyman 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.