Giter Club home page Giter Club logo

tvc-simulator's Introduction

background Part of SHKYERA project

PID Thrust Vector Control Rocket Simulator

With this software, you can tune your PID values for a thrust vector controlled rockets. It has been experimentally tested and simulator accuracy is more than enough for amateur rocketry.

Description

The Python script simulates rocket's orientation on a purely mechanical basis (no aerodynamics ๐Ÿ™). Angular momentum equations are applied to check how good a set of PID values is for a particular rocket.

Usage

  1. Find physical parameters of the rocket, that is:
    1. Mass
    2. Distance from the engine to the center of mass
    3. Mass moment of inertia (tutorial)
    4. Engine's thrust
    5. Delay of the actuator (time between sending a command to a physical movement of TVC mount)
  2. Run the script with above parameters and find accurate PID values!

Example usage

python MomentumSimulator.py -delay 0.04 -moment 0.0344 -distance 0.21 -thrust 2 -mass 0.431 -length 4 -angle 12 -p 0.45 -i 0.1 -d 0.22

examplePlots

As you can see, the top-left plot goes to zero pretty quickly (the rocket stabilizes), so the PID values are good and ready to be pasted into your controller!

Help

Check

python MomentumSimulator.py -h

or post an issue.

tvc-simulator's People

Contributors

fszewczyk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.