Skip to content
Snippets Groups Projects
Commit a248c2ee authored by Davide Mor's avatar Davide Mor
Browse files

[MEA] Added estimatedForce reporting

parent 6b99e0f4
No related branches found
No related tags found
No related merge requests found
......@@ -190,4 +190,5 @@ void MEA::updateState()
state.estimatedMass = x(2);
state.estimatedPressure = baroH * x;
state.estimatedApogee = apogee;
state.estimatedForce = force;
}
\ No newline at end of file
......@@ -59,7 +59,7 @@ public:
Aeroutils::AerodynamicCoeff coeffs; //< Aerodynamic coefficients.
float crossSection; //< Cross section of the rocket.
float ae; //< TODO: What is this?
float ae; //< Efflux area
float p0; //< Pressure at nozzle exit
};
......
......@@ -35,20 +35,23 @@ struct MEAState
float estimatedPressure;
float estimatedMass;
float estimatedApogee;
float estimatedForce;
float x0;
float x1;
static std::string header()
{
return "timestamp,estimatedPressure,estimatedMass,estimatedApogee,x0,"
return "timestamp,estimatedPressure,estimatedMass,estimatedApogee,"
"estimatedForce,x0,"
"x1\n";
}
void print(std::ostream &os) const
{
os << timestamp << "," << estimatedPressure << "," << estimatedMass
<< "," << estimatedApogee << "," << x0 << "," << x1 << "\n";
<< "," << estimatedApogee << "," << estimatedForce << "," << x0
<< "," << x1 << "\n";
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment