1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-07-23 14:41:25 +00:00

naming of stuff

This commit is contained in:
2021-09-17 15:16:59 -07:00
parent 4322e52a30
commit 2d8dfa05f9

View File

@@ -383,12 +383,11 @@ void write2CSV(outVector &stateVector, Vehicle &State) {
outfile.close();
}
double derivative(double x2, double x1, double dt) {
double dxdt = (x2 - x1) / (dt / 1000);
double derivative(double current, double previous, double step) {
double dxdt = (previous - current) / (step / 1000);
return dxdt;
}
double integral(double x, double y, double dt) {
double integ = (x * dt / 1000) + y;
return integ;
double integral(double currentChange, double prevValue, double dt) {
return (currentChange * dt / 1000) + prevValue;
}