rdoddanavar / hpr-sim

6DOF Flight Simulation for High Power Model Rocketry
https://rdoddanavar.github.io/hpr-sim/
GNU General Public License v3.0
4 stars 2 forks source link

src/preproc: preproc_model module --> prop model #19

Closed rdoddanavar closed 3 years ago

rdoddanavar commented 4 years ago

Proposed preproc_model.py that defines parsing routines specific to model input files; ex. aero model, prop model, etc.

Engine model file format: http://www.thrustcurve.org/raspformat.shtml

Module should create data suitable for initializing prop model

rdoddanavar commented 4 years ago

Related to #20

rdoddanavar commented 3 years ago

RASP engine files are *.eng, Rocksim engine files are *.rse (XML)

rdoddanavar commented 3 years ago
import pathlib

print(pathlib.Path('yourPath.example').suffix) # '.example'

Single load function, point towards specific function based on file extension (*.rse vs *.eng)

rdoddanavar commented 3 years ago

Help for working with XML files: https://stackabuse.com/reading-and-writing-xml-files-in-python/