mirror of
https://gitlab.com/lander-team/lander-cpp.git
synced 2025-07-27 16:41:26 +00:00
Added -Wall to tasks.json
This commit is contained in:
@@ -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,8 +95,8 @@ void burnStartTimeCalc(Vehicle &State) {
|
||||
h = integral(velocity, h, State.stepSize);
|
||||
}
|
||||
|
||||
State.z = 18.88;//h + (pow(velocity, 2) / (2 * -g)); // starting height
|
||||
State.burnVelocity = velocity; // terminal velocity
|
||||
State.z = 19.09; // h + (pow(velocity, 2) / (2 * -g)); // starting height
|
||||
State.burnVelocity = velocity; // terminal velocity
|
||||
std::cout << State.z << std::endl;
|
||||
|
||||
double burnStartTime = State.burnVelocity / -g;
|
||||
|
Reference in New Issue
Block a user