@ -4,7 +4,7 @@
# include "../src/orbital_mechanics.h"
# include "../src/simulation.h"
# include "../src/orbital_objects.h"
# include "../src/rendezvous_hohmann .h"
# include "../src/rendezvous.h"
# include "../src/config_loader.h"
# include "../src/test_utilities.h"
# include <cmath>
@ -33,7 +33,7 @@ TEST_CASE("Config loading for Hohmann transfer", "[rendezvous_hohmann][config]")
SimulationState * sim = create_simulation ( 3 , 5 , 10 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous_hohmann .toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous.toml " ) ) ;
REQUIRE ( sim - > body_count = = 1 ) ;
REQUIRE ( std : : string ( sim - > bodies [ 0 ] . name ) = = " Earth " ) ;
@ -63,7 +63,7 @@ TEST_CASE("Calculate wait time for Hohmann transfer (lower to higher)", "[rendez
SimulationState * sim = create_simulation ( 3 , 5 , 10 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous_hohmann .toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous.toml " ) ) ;
int target_idx = find_spacecraft_by_name ( sim , " Target_Satellite " ) ;
int chaser_lower_idx = find_spacecraft_by_name ( sim , " Chaser_Lower " ) ;
@ -118,7 +118,7 @@ TEST_CASE("Calculate wait time for Hohmann transfer (higher to lower)", "[rendez
SimulationState * sim = create_simulation ( 3 , 5 , 10 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous_hohmann .toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous.toml " ) ) ;
int target_idx = find_spacecraft_by_name ( sim , " Target_Satellite " ) ;
int chaser_higher_idx = find_spacecraft_by_name ( sim , " Chaser_Higher " ) ;
@ -162,7 +162,7 @@ TEST_CASE("Calculate required separation for Hohmann transfer", "[rendezvous_hoh
SimulationState * sim = create_simulation ( 3 , 5 , 10 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous_hohmann .toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous.toml " ) ) ;
int target_idx = find_spacecraft_by_name ( sim , " Target_Satellite " ) ;
int chaser_lower_idx = find_spacecraft_by_name ( sim , " Chaser_Lower " ) ;
@ -220,7 +220,7 @@ TEST_CASE("Validate Hohmann transfer parameters", "[rendezvous_hohmann][validati
const double TIME_STEP = 30.0 ;
SimulationState * sim = create_simulation ( 3 , 5 , 10 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous_hohmann .toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous.toml " ) ) ;
initialize_orbital_objects ( sim ) ;
Spacecraft * chaser_lower = & sim - > spacecraft [ 1 ] ;
@ -281,7 +281,7 @@ TEST_CASE("Calculate relative orbit period", "[rendezvous_hohmann][phasing]") {
const double TIME_STEP = 30.0 ;
SimulationState * sim = create_simulation ( 3 , 5 , 10 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous_hohmann .toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous.toml " ) ) ;
initialize_orbital_objects ( sim ) ;
Spacecraft * chaser_lower = & sim - > spacecraft [ 1 ] ;
@ -344,7 +344,7 @@ TEST_CASE("Calculate next valid wait time for Hohmann transfer", "[rendezvous_ho
const double TIME_STEP = 30.0 ;
SimulationState * sim = create_simulation ( 3 , 5 , 10 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous_hohmann .toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous.toml " ) ) ;
initialize_orbital_objects ( sim ) ;
Spacecraft * chaser_lower = & sim - > spacecraft [ 1 ] ;
@ -434,7 +434,7 @@ SCENARIO("Hohmann transfer rendezvous with validation", "[rendezvous_hohmann][in
const double TIME_STEP = 0.1 ;
SimulationState * sim = create_simulation ( 3 , 5 , 10 , TIME_STEP ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous_hohmann .toml " ) ) ;
REQUIRE ( load_system_config ( sim , " tests/test_rendezvous.toml " ) ) ;
int target_idx = find_spacecraft_by_name ( sim , " Target_Satellite " ) ;
int chaser_lower_idx = find_spacecraft_by_name ( sim , " Chaser_Lower " ) ;