Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
200km committed Oct 1, 2024
1 parent 5993e4a commit a4b50bc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
5 changes: 3 additions & 2 deletions src/simulation/spacecraft/spacecraft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ Spacecraft::~Spacecraft() {
delete components_;
}

void Spacecraft::Initialize(const simulation::SimulationConfiguration* simulation_configuration, const environment::GlobalEnvironment* global_environment,
const int spacecraft_id, simulation::RelativeInformation* relative_information) {
void Spacecraft::Initialize(const simulation::SimulationConfiguration* simulation_configuration,
const environment::GlobalEnvironment* global_environment, const int spacecraft_id,
simulation::RelativeInformation* relative_information) {
clock_generator_.ClearTimerCount();
structure_ = new spacecraft::Structure(simulation_configuration, spacecraft_id);
local_environment_ = new environment::LocalEnvironment(simulation_configuration, global_environment, spacecraft_id);
Expand Down
21 changes: 11 additions & 10 deletions src/simulation/spacecraft/spacecraft.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ class Spacecraft {
* @fn Initialize
* @brief Initialize function for multiple spacecraft simulation
*/
virtual void Initialize(const simulation::SimulationConfiguration* simulation_configuration, const environment::GlobalEnvironment* global_environment,
const int spacecraft_id, simulation::RelativeInformation* relative_information = nullptr);
virtual void Initialize(const simulation::SimulationConfiguration* simulation_configuration,
const environment::GlobalEnvironment* global_environment, const int spacecraft_id,
simulation::RelativeInformation* relative_information = nullptr);

/**
* @fn Update
Expand Down Expand Up @@ -99,14 +100,14 @@ class Spacecraft {
inline unsigned int GetSpacecraftId() const { return spacecraft_id_; }

protected:
environment::ClockGenerator clock_generator_; //!< Origin of clock for the spacecraft
dynamics::Dynamics* dynamics_; //!< Dynamics information of the spacecraft
simulation::RelativeInformation* relative_information_; //!< Relative information with respect to the other spacecraft
environment::LocalEnvironment* local_environment_; //!< Local environment information around the spacecraft
disturbances::Disturbances* disturbances_; //!< Disturbance information acting on the spacecraft
spacecraft::Structure* structure_; //!< Structure information of the spacecraft
InstalledComponents* components_; //!< Components information installed on the spacecraft
const unsigned int spacecraft_id_; //!< ID of the spacecraft
environment::ClockGenerator clock_generator_; //!< Origin of clock for the spacecraft
dynamics::Dynamics* dynamics_; //!< Dynamics information of the spacecraft
simulation::RelativeInformation* relative_information_; //!< Relative information with respect to the other spacecraft
environment::LocalEnvironment* local_environment_; //!< Local environment information around the spacecraft
disturbances::Disturbances* disturbances_; //!< Disturbance information acting on the spacecraft
spacecraft::Structure* structure_; //!< Structure information of the spacecraft
InstalledComponents* components_; //!< Components information installed on the spacecraft
const unsigned int spacecraft_id_; //!< ID of the spacecraft
};

} // namespace s2e::spacecraft
Expand Down
2 changes: 1 addition & 1 deletion src/simulation/spacecraft/structure/structure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Structure {

private:
KinematicsParameters* kinematics_parameters_; //!< Kinematics parameters
std::vector<Surface> surfaces_; //!< Surface information
std::vector<Surface> surfaces_; //!< Surface information
ResidualMagneticMoment* residual_magnetic_moment_; //!< Residual Magnetic Moment
};

Expand Down

0 comments on commit a4b50bc

Please sign in to comment.