diff --git a/src/game.cpp b/src/game.cpp index 893b601..fed9c46 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -152,8 +152,17 @@ addManeuver(GameOrbit* orbit, //double flight_path_angle = orbit->system.sat.gamma; //node.impulse_vector.x = ... + if (node.impulse_type == ImpulseType::PROGRADE) { - LOGF(Debug, "adding prograde maneuver\n"); + double clamped_theta = orbitClampAngle(true_anomaly) + 2 * M_PI; + LOGF(Debug, "adding prograde maneuver\n," + "theta: %f,\n" + "clamped theta: %f,\n" + "dv: %f\n", + true_anomaly, + clamped_theta, + impulse_delta_v); + node.true_anomaly = true_anomaly; node.impulse_delta_v = impulse_delta_v; node.active = true;