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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user