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

Fixed Initial Height

This commit is contained in:
Matthew Robinaugh 2021-10-20 14:13:40 -07:00
parent c62a8b0c44
commit 4a70843273

View File

@ -95,7 +95,7 @@ void burnStartTimeCalc(Vehicle &State) {
h = integral(velocity, h, State.stepSize); h = integral(velocity, h, State.stepSize);
} }
State.z = h + (pow(velocity, 2) / (2 * -g)); // starting height State.z = 18.88;//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;