From 97de9f2957fa8147212ceb356b2a2bf9b4252f3d Mon Sep 17 00:00:00 2001 From: Matthew Robinaugh Date: Fri, 29 Oct 2021 14:44:48 -0700 Subject: [PATCH] Fixed build sim on startup --- .vscode/tasks.json | 2 +- include/sim.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index b64d343..6e32a32 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,7 +2,7 @@ "version": "2.0.0", "tasks": [ { - "type": "cppbuild", + "type": "process", "label": "buildSim", "command": "g++", "args": [ diff --git a/include/sim.h b/include/sim.h index dd186fe..f261857 100644 --- a/include/sim.h +++ b/include/sim.h @@ -70,7 +70,7 @@ bool sim(struct Vehicle &State, struct Vehicle &PrevState) { } void burnStartTimeCalc(Vehicle &State) { - double dt = State.stepSize; + double dt = State.stepSize/1000.0; double velocity = State.vz; double h = 0;