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

Merge branch '19-failed-velocity-requirement' of https://gitlab.com/lander-team/lander-cpp into 19-failed-velocity-requirement

This commit is contained in:
bpmcgeeney 2021-11-01 12:29:39 -07:00
commit 90d385f0b3
2 changed files with 2 additions and 2 deletions

2
.vscode/tasks.json vendored
View File

@ -2,7 +2,7 @@
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"type": "process",
"label": "buildSim",
"command": "g++",
"args": [

View File

@ -16,7 +16,6 @@ double limit(double value, double upr, double lwr);
// Any parameters that are constants should be declared here instead of
// buried in code
double const dt = 0.001;
double const g = -9.81;
bool sim(struct Vehicle &State, struct Vehicle &PrevState) {
@ -71,6 +70,7 @@ bool sim(struct Vehicle &State, struct Vehicle &PrevState) {
}
void burnStartTimeCalc(Vehicle &State) {
double dt = State.stepSize/1000.0;
double velocity = State.vz;
double h = 0;