diff --git a/build/debug/main.exe b/build/debug/main.exe index d216120..616bc89 100644 Binary files a/build/debug/main.exe and b/build/debug/main.exe differ diff --git a/include/sim.h b/include/sim.h index 61b89d9..e156e66 100644 --- a/include/sim.h +++ b/include/sim.h @@ -247,7 +247,7 @@ void vehicleDynamics(struct sVars &Vars, int t) { Vars.I22 * Vars.pitchdot * Vars.yawdot) / Vars.I33; - if (t < 1) { + if (t < 1) { // TODO: Initial conditions should be set at sim start Vars.x = 0; Vars.y = 0; @@ -298,6 +298,7 @@ void vehicleDynamics(struct sVars &Vars, int t) { // TODO: Maybe we should just have a `Vars` for the last time step and at the // end of each time step make a copy of it + // TODO: Delete, section not needed // Set "prev" values for next timestep Vars.I11prev = Vars.I11; Vars.I22prev = Vars.I22; diff --git a/src/main.cpp b/src/main.cpp index 4551a8c..a5c6826 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,5 @@ +#define M_PI 3.14159265359 + #include #include #include