1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-07-25 23:51:35 +00:00
This commit is contained in:
bpmcgeeney
2021-09-17 12:53:59 -07:00
parent dbb6888602
commit 61a82eb579
12 changed files with 10139 additions and 5746 deletions

View File

@@ -27,7 +27,9 @@ int main() {
// Initial YPRdot
State.yawdot = 0 * M_PI / 180; // [rad/s]
State.pitchdot = 0 * M_PI / 180; // [rad/s]
State.rolldot = 0 * M_PI / 180; // [rad/s]
State.rolldot =
0 * M_PI /
180; // [rad/s] std::vector <int> vec = std::vector<int>(10);
// Servo Limitation
State.maxServo = 15; // [degs]
@@ -46,6 +48,9 @@ int main() {
State.massBurnout = State.massInitial - State.massPropellant; // [kg]
State.burntime = 3.45 - 0.148; // [s]
State.mdot = State.massPropellant / State.burntime; // [kg/s]
State.mass = State.massInitial; // [kg]
State.burnElapsed = 2000; // [s]
PrevState.thrust = 0; // [N]
bool outcome = sim(State, PrevState);
@@ -53,9 +58,9 @@ int main() {
<< "\n";
if (outcome == 1)
std::cout << "Success!";
std::cout << "Sim Result = Success!";
else if (outcome == 0)
std::cout << "Failed!";
std::cout << "Sim Result = Failed!";
return 0;
}