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

Added -Wall to tasks.json

This commit is contained in:
Matthew Robinaugh 2021-11-01 13:30:17 -07:00
parent 97de9f2957
commit 230fb3492c
2 changed files with 5 additions and 4 deletions

3
.vscode/tasks.json vendored
View File

@ -11,7 +11,8 @@
"-o", "-o",
"${workspaceFolder}/main.exe", "${workspaceFolder}/main.exe",
"-I", "-I",
"${workspaceFolder}/include" "${workspaceFolder}/include",
"-Wall"
], ],
"options": { "options": {
"cwd": "${fileDirname}" "cwd": "${fileDirname}"

View File

@ -70,7 +70,7 @@ bool sim(struct Vehicle &State, struct Vehicle &PrevState) {
} }
void burnStartTimeCalc(Vehicle &State) { void burnStartTimeCalc(Vehicle &State) {
double dt = State.stepSize/1000.0; double dt = State.stepSize / 1000.0;
double velocity = State.vz; double velocity = State.vz;
double h = 0; double h = 0;
@ -95,8 +95,8 @@ void burnStartTimeCalc(Vehicle &State) {
h = integral(velocity, h, State.stepSize); h = integral(velocity, h, State.stepSize);
} }
State.z = 18.88;//h + (pow(velocity, 2) / (2 * -g)); // starting height State.z = 19.09; // h + (pow(velocity, 2) / (2 * -g)); // starting height
State.burnVelocity = velocity; // terminal velocity State.burnVelocity = velocity; // terminal velocity
std::cout << State.z << std::endl; std::cout << State.z << std::endl;
double burnStartTime = State.burnVelocity / -g; double burnStartTime = State.burnVelocity / -g;