Skip to content

Commit

Permalink
Fix ini file copy for telescope
Browse files Browse the repository at this point in the history
  • Loading branch information
200km committed Aug 25, 2024
1 parent 1a65545 commit 747c94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulation_sample/spacecraft/sample_components.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ SampleComponents::SampleComponents(const Dynamics* dynamics, Structure* structur
thruster_ = new SimpleThruster(InitSimpleThruster(clock_generator, pcu_->GetPowerPort(2), 1, file_name, structure_, dynamics));

// Mission
const std::string telescope_ini_path = iniAccess.ReadString("COMPONENT_FILES", "telescope_file");
file_name = iniAccess.ReadString("COMPONENT_FILES", "telescope_file");
configuration_->main_logger_->CopyFileToLogDirectory(file_name);
telescope_ =
new Telescope(InitTelescope(clock_generator, 1, telescope_ini_path, &(dynamics_->GetAttitude()), &(global_environment_->GetHipparcosCatalog()),
new Telescope(InitTelescope(clock_generator, 1, file_name, &(dynamics_->GetAttitude()), &(global_environment_->GetHipparcosCatalog()),
&(local_environment_->GetCelestialInformation()), &(dynamics_->GetOrbit())));

// Force Generator
Expand Down

0 comments on commit 747c94b

Please sign in to comment.