rdoddanavar / hpr-sim

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

"Model" base class #15

Closed rdoddanavar closed 3 years ago

rdoddanavar commented 4 years ago

Implement class that defines utilities for managing the internal state of a physical model:

Possible methods/functions:

rdoddanavar commented 4 years ago

Think about using std::map as a state container, as opposed to std::vector<float>

https://en.cppreference.com/w/cpp/container/map

rdoddanavar commented 4 years ago

Possible derived classes:

By linking models, time step updates could be automatic? i.e. kinematic model updates, calls dependent models (any model that affects EOM, meaning all of them), their states update

Allows for flexibility: mutiple kinematic, aero, prop models can be linked for different phases/stages of flight?

@jacobcaesar

rdoddanavar commented 4 years ago

Discussion on virtual functions: https://stackoverflow.com/questions/2391679/why-do-we-need-virtual-functions-in-c?rq=1

rdoddanavar commented 3 years ago

Override keyword: https://stackoverflow.com/questions/18198314/what-is-the-override-keyword-in-c-used-for