GithubHelp home page GithubHelp logo

oygx210 / 42 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ericstoneking/42

0.0 0.0 0.0 292.25 MB

Simulation for spacecraft attitude control system analysis and design

MATLAB 2.46% Fortran 1.60% Makefile 0.40% C 78.81% Gnuplot 0.01% M 0.03% Java 0.07% Mathematica 0.13% Shell 0.06% C++ 11.12% GLSL 1.65% Objective-C 1.54% Batchfile 0.01% Python 2.11%

42's Introduction

42 - Spacecraft Simulation

42 is a comprehensive general-purpose simulation of spacecraft attitude and orbit dynamics. Its primary purpose is to support design and validation of attitude control systems, from concept studies through integration and test. 42 accurately models multi-body spacecraft attitude dynamics (with rigid and/or flexible bodies), and both two-body and three-body orbital flight regimes, modelling environments from low Earth orbit to throughout the solar system. 42 simulates multiple spacecraft concurrently, facilitating studies of rendezvous, proximity operations, and precision formation flying. It also features visualization of spacecraft attitude.

Features:

  • Multi-body dynamics (tree topology, rotational and/or translational joints)
  • Rigid and/or flexible bodies
  • Multiple spacecraft (prox ops, formation flying, or independent)
  • Inter-spacecraft and spacecraft-surface contact forces support landers, rovers, and spacecraft servicing scenarios
  • Two-body or three-body orbits, anywhere in the solar system
  • Optional visualization
  • Socket-based interprocess comm (IPC) interface to other apps
  • Fast setup for concept studies
  • Rigorous and full-featured to support full spacecraft life cycle

Installation

If you're installing on Windows, see the file "Install-msys.txt" in the Docs folder.

The compiler will attempt to detect what platform you're on (Linux, OSX, or Msys), but its success rate isn't great. If you have errors on the first compile or run, try editing your Makefile to manually set your 42PLATFORM.

Getting Started

See the overview, "42 Overview.pdf", in the Docs folder. Also recommended:

  • Nomenclature.pdf
  • POV Menu.pdf
  • Key Bindings.txt
  • FSW Models.pdf
  • Flight Regimes.pdf

The default folder for inputs and outputs is "InOut". Look there for sample input files. "Inp_Sim.txt" is the top-level input file.

The input/output folder may be changed for a sim run by running 42 with an argument. For example, enter this at the command prompt:

42 Demo

Common Problems

  1. 42 expects the input files to be plain vanilla text files. If your text editor adds formatting, makes straight quotes into smart quotes, etc, 42 may get confused. The most common symptom is generating the "Bogus input in DecodeString" error.

  2. Also text-related, 42 is very simple-minded about reading the input files. Adding extra lines, or accidentally deleting a line, or swapping lines, will throw things out of synch. Again, the most common symptom is the "Bogus input in DecodeString" error. Use your debugger to trace back where the error was generated. (The actual mistake may be at that line, or may be somewhere upstream.)

42's People

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.