Browse Source

Fix test_analytical_propagation_apsides: measure velocity at different anomaly

main
cinnaboot 5 months ago
parent
commit
5fc73488e5
  1. 2
      tests/test_analytical_propagation_apsides.cpp

2
tests/test_analytical_propagation_apsides.cpp

@ -21,6 +21,8 @@ TEST_CASE("Propagation through perigee (velocity maximum)", "[analytical][propag
Vec3 pos_before;
Vec3 vel_before;
craft->orbit.true_anomaly = M_PI / 4.0;
orbital_elements_to_cartesian(craft->orbit, earth->mass, &pos_before, &vel_before);
double v_before = vec3_magnitude(vel_before);

Loading…
Cancel
Save