1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-06-16 23:26:43 +00:00

initial commit

This commit is contained in:
bpmcgeeney 2021-09-11 17:18:39 -07:00
parent 44d0db8bfd
commit d50f766169
3 changed files with 33 additions and 39 deletions

View File

@ -1,6 +0,0 @@
{
"files.associations": {
"array": "cpp",
"iostream": "cpp"
}
}

View File

@ -39,7 +39,7 @@ struct sVars
double simTime;
int stepSize;
std::array<std::array<double, 2>, 26> thrustCurve = { { {0.148, 7.638},
std::array<std::array<double, 2>, 26> thrustCurve = {{{0.148, 7.638},
{0.228, 12.253},
{0.294, 16.391},
{0.353, 20.210},
@ -64,7 +64,7 @@ struct sVars
{3.382, 13.013},
{3.404, 9.352},
{3.418, 4.895},
{3.450, 0.000}} };
{3.450, 0.000}}};
};
#endif

View File

@ -1,10 +1,10 @@
#include "sVars.h"
void burnStartTimeCalc(struct sVars&, double g);
void thrustSelection(struct sVars&, int t);
void lqrCalc(struct sVars&);
void TVC(struct sVars&, double g);
void vehicleDynamics(struct sVars&, int t);
void write2CSV(struct sVars&, std::fstream& outfile, int t);
void burnStartTimeCalc(struct sVars &, double g);
void thrustSelection(struct sVars &, int t);
void lqrCalc(struct sVars &);
void TVC(struct sVars &, double g);
void vehicleDynamics(struct sVars &, int t);
void write2CSV(struct sVars &, std::fstream &outfile, int t);
double derivative(double x2, double x1, double dt);
double integral(double x2, double x1, double dt);