- This class integrates all disturbances calculation.
- All disturbances are initialized in this class.
- Their update calculations are called in this class.
src/disturbances/disturbances.hpp
src/disturbances/disturbances.cpp
- When you make a new disturbance class, you need to register the new disturbance class in the
InitializeInstances
function. - If you register your disturbance class correctly, the update function is automatically updated in the
Disturbances::Update
class, and the disturbance force and/or torque is added for dynamics propagation.
- This function calls the
Disturbance::Update
functions defined by each disturbance class. - Generally, orbital disturbances depend on spacecraft position. Some disturbances depend on spacecraft attitude with respect to the disturbance sources. Therefore, there are two update timing in this function.
- When the spacecraft position is updated, all disturbances are updated.
- When the spacecraft attitude is updated, disturbances which depend on attitude are updated.
- The instances of all disturbance classes are made and registered to the disturbance list in this function.
- The Earth only disturbances are registered when the selected center object is the Earth.