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:
parent
97de9f2957
commit
230fb3492c
3
.vscode/tasks.json
vendored
3
.vscode/tasks.json
vendored
@ -11,7 +11,8 @@
|
||||
"-o",
|
||||
"${workspaceFolder}/main.exe",
|
||||
"-I",
|
||||
"${workspaceFolder}/include"
|
||||
"${workspaceFolder}/include",
|
||||
"-Wall"
|
||||
],
|
||||
"options": {
|
||||
"cwd": "${fileDirname}"
|
||||
|
@ -70,7 +70,7 @@ bool sim(struct Vehicle &State, struct Vehicle &PrevState) {
|
||||
}
|
||||
|
||||
void burnStartTimeCalc(Vehicle &State) {
|
||||
double dt = State.stepSize/1000.0;
|
||||
double dt = State.stepSize / 1000.0;
|
||||
double velocity = State.vz;
|
||||
double h = 0;
|
||||
|
||||
@ -95,7 +95,7 @@ void burnStartTimeCalc(Vehicle &State) {
|
||||
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
|
||||
std::cout << State.z << std::endl;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user