1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-06-16 15:17:23 +00:00

added #define for M_PI as well as a few TODO's

This commit is contained in:
bpmcgeeney 2021-09-14 22:17:03 -07:00
parent 952ffaac4e
commit 16d0ddc60b
3 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -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;

View File

@ -1,3 +1,5 @@
#define M_PI 3.14159265359
#include <cmath>
#include <fstream>
#include <iostream>