Skip to content

Models descent of amateur rockets with 2 parachute stages. Uses live wind data

License

Notifications You must be signed in to change notification settings

rsewell97/rocket-recovery-cusf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CUSF Rocket 2-Stage Parachute Descent Model

A lightweight simulator to model the descent of amateur rockets using live wind data. Work in progress

A call is made to the CUSF balloon flight path predictor API, details can be found here. A sample API response can be seen here and the descent vlues are zeroed, interpolated and added to the original simulation. NB: This assumes the rocket is a linear system which may not necessarily be the case.

The model in descentProfile.py assumes two stages of parachutes will be used, a drogue and a main chute. The parameters of each chute, the rocket, initial conditions and more can be altered to tailor the model for most needs.

The function dataRelease(type,what=[positions,velocities,accelerations]) allows customised output data to be debugged, written to file, or returned.

The function plotAll(total_time) automatically plots positions, velocity, acceleration and parachute tensions over time on a single matplotlib figure.

Future Plans

Not in any particular order

  • Create a command line argument parser
  • Fix bug when velocity == 0
  • Add drag to rocket
  • More accurately model snatch load mechanics robustly - model tests likely
  • Quantify wind effect on rocket dependant on mass
  • Add rocket orientaion physics

Command Line Arguments

Please note: if one argument is specified, all others must too, or they will be set to default values as seen in descentProfile.py

usage: descentProfile.py [-h] [-ia INITALT] [-t DT] [-m MASS] [-v VELOCITY]
                         [-l LOCATION] [-da DEPLOYALT] [-dD DROGUED]
                         [-cD CHUTED] [-ot OPENTIME]

optional arguments:
  -h, --help            show this help message and exit
  -ia INITALT, --initalt INITALT
                        apogee altitude
  -t DT, --dt DT        time step
  -m MASS, --mass MASS  dry mass at apogee
  -v VELOCITY, --velocity VELOCITY
                        initial velocity at apogee
  -l LOCATION, --location LOCATION
                        initial launch [lat, long], as list
  -da DEPLOYALT, --deployalt DEPLOYALT
                        altitude main chute opens
  -dD DROGUED, --drogueD DROGUED
                        diameter of drogue
  -cD CHUTED, --chuteD CHUTED
                        diameter of main chute
  -ot OPENTIME, --opentime OPENTIME
                        assuming chute opens linearly, what is the duration is
                        secs

Please message me if you have other suggestions

~Robbie

About

Models descent of amateur rockets with 2 parachute stages. Uses live wind data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages