Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rocket Simulation

This project simulates the angle control of a rocket using a simple PID (Proportional-Derivative) controller. The simulation models how the rocket's angle changes over time in response to thrust and gimbal adjustments, and visualizes the results using plots.

What the Code Does

  • Models a rocket's angular motion based on physics equations.
  • Uses a basic PID controller to adjust the gimbal angle and keep the rocket at the desired orientation.
  • Plots the rocket's angle and gimbal angle over time for visualization.

Requirements

  • Python 3.x
  • matplotlib

How to Run

  1. Clone or download this repository.
  2. Create and activate a virtual environment (recommended):
    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies:
    pip install -r requirements.txt
  4. Run the simulation:
    python main.py

Output

A plot window will appear showing the rocket's angle and the gimbal angle over time.


Feel free to modify the parameters in main.py to experiment with different rocket behaviors or controller settings!

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages