|
|
|
@ -152,8 +152,17 @@ addManeuver(GameOrbit* orbit, |
|
|
|
//double flight_path_angle = orbit->system.sat.gamma;
|
|
|
|
//double flight_path_angle = orbit->system.sat.gamma;
|
|
|
|
//node.impulse_vector.x = ...
|
|
|
|
//node.impulse_vector.x = ...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (node.impulse_type == ImpulseType::PROGRADE) { |
|
|
|
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.true_anomaly = true_anomaly; |
|
|
|
node.impulse_delta_v = impulse_delta_v; |
|
|
|
node.impulse_delta_v = impulse_delta_v; |
|
|
|
node.active = true; |
|
|
|
node.active = true; |
|
|
|
|