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:
parent
952ffaac4e
commit
16d0ddc60b
Binary file not shown.
@ -247,7 +247,7 @@ void vehicleDynamics(struct sVars &Vars, int t) {
|
|||||||
Vars.I22 * Vars.pitchdot * Vars.yawdot) /
|
Vars.I22 * Vars.pitchdot * Vars.yawdot) /
|
||||||
Vars.I33;
|
Vars.I33;
|
||||||
|
|
||||||
if (t < 1) {
|
if (t < 1) { // TODO: Initial conditions should be set at sim start
|
||||||
Vars.x = 0;
|
Vars.x = 0;
|
||||||
Vars.y = 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
|
// 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
|
// end of each time step make a copy of it
|
||||||
|
|
||||||
|
// TODO: Delete, section not needed
|
||||||
// Set "prev" values for next timestep
|
// Set "prev" values for next timestep
|
||||||
Vars.I11prev = Vars.I11;
|
Vars.I11prev = Vars.I11;
|
||||||
Vars.I22prev = Vars.I22;
|
Vars.I22prev = Vars.I22;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#define M_PI 3.14159265359
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user