mirror of
https://gitlab.com/lander-team/lander-cpp.git
synced 2025-07-23 22:51:26 +00:00
naming of stuff
This commit is contained in:
@@ -383,12 +383,11 @@ void write2CSV(outVector &stateVector, Vehicle &State) {
|
|||||||
outfile.close();
|
outfile.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
double derivative(double x2, double x1, double dt) {
|
double derivative(double current, double previous, double step) {
|
||||||
double dxdt = (x2 - x1) / (dt / 1000);
|
double dxdt = (previous - current) / (step / 1000);
|
||||||
return dxdt;
|
return dxdt;
|
||||||
}
|
}
|
||||||
|
|
||||||
double integral(double x, double y, double dt) {
|
double integral(double currentChange, double prevValue, double dt) {
|
||||||
double integ = (x * dt / 1000) + y;
|
return (currentChange * dt / 1000) + prevValue;
|
||||||
return integ;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user